Hi,
There is one issue that I need to clarify.
I have configuration file for app, and when app is starting, configuration is automatically selected in the 3dxWare panel.
When application is closed, configuration is still selected and do not return to the default configuration that was before app start.
Into our app I use the following code for initialization:
SiOpenData oData; //OS Independent data to open ball
SiOpenWinInit( &oData, handle ); //init Win. platform specific data
SiSetUiMode( &m_DevHdl, SI_UI_ALL_CONTROLS ); //Config SoftButton Win Display
m_DevHdl = SiOpen ("MyApp.exe", SI_ANY_DEVICE, SI_NO_MASK, SI_EVENT, &oData);
For termination:
SiClose( m_DevHdl );
My configuration file:
...
[IDENTIFICATION]
APPLICATION_NAME = "MyApp"
OWNER = USER
PLATFORM = WINDOWS
LEVEL = BEGINNER
ORIENTATION = HORIZONTAL
DRIVER_TYPE = "Any"
[CONFIGURATION]
HIDE_FILE = FALSE
2D_ONLY = FALSE
MACRO_MECHANISM = 0
APP_CONTROLS_BUTTONS = FALSE
TRANSPORT_PROTOCOL = NO_TRANSPORT
ICON = "Default_3Dx_16x16.ico"
TIPS_AND_TRICKS_URL = "http://www.3Dconnexion.com/TipsAndTricks.htm"
3DX_HELP = "AnyApplicationHelp.htm"
EXECUTABLES = { "MyApp.exe" }
...
This issue leads to the next problem. After application is closed I can change configuration for my app through 3dxWare panel (the registry key will be also changed).
What should I use to avoid this problem? Any help will be appreciated.
Cheers,
Serg
Configuration problem
Moderator: Moderators
Re: Configuration problem
This is the way 3DxWare 6 works. There is no real default profile unless a 3Dmouse-aware application is running.
Why is it a problem?
3DxWare 10 can have profiles associated with the desktop/Windows Explorer. The driver would then switch to that profile when your application loses focus.
Why is it a problem?
3DxWare 10 can have profiles associated with the desktop/Windows Explorer. The driver would then switch to that profile when your application loses focus.
Re: Configuration problem
Thank you for your reply, I hardly know if it's great manner for my application:
I run application and my configuration was selected for usage, then I terminate my app. When I try to select another configuration into 3DxWare panel, this configuration will be used for my app also - "MyApp.exe" registry key's value will be changed with new selected config file (but my app was already shut down), so after application termination we can change configuration that it uses through 3DxWare panel. What is the best way to use own configuration and disable such strange behavior? Probably there are some misstakes into SDK usage?
Thanks,
Sergiy
I run application and my configuration was selected for usage, then I terminate my app. When I try to select another configuration into 3DxWare panel, this configuration will be used for my app also - "MyApp.exe" registry key's value will be changed with new selected config file (but my app was already shut down), so after application termination we can change configuration that it uses through 3DxWare panel. What is the best way to use own configuration and disable such strange behavior? Probably there are some misstakes into SDK usage?
Thanks,
Sergiy
Re: Configuration problem
It is best to be testing with 3DxWare 10. It is (?) more predictable.
The current driver stack will be discontinued in the near future.
I don't see anything particularly wrong with editing a profile while the application is no longer running.
The current driver stack will be discontinued in the near future.
I don't see anything particularly wrong with editing a profile while the application is no longer running.