|
Are you using UNICODE in your build? There are some items within the CommonControl 6.0 that are only capable of operating with a unicode build, so perhaps that is your problem.
Try a simple test app - set for unicode - and see if it works, then modify to MBCS instead of unicode and try again.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
I tried with test application.
It crashes in unicode build and in MBCS its ok.
However if add the following manifest then it crashes in MBCS also.
#if _MSC_VER >= 1400
#if defined _M_IX86
#define PROCESSOR_ARCH "x86"
#define CC_PROCESSOR_ARCH "x86"
#endif
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='" CC_PROCESSOR_ARCH "' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif // _MSC_VER >= 1400
|
|
|
|
|
Hi All,
I have created one DLL using C programming language.there i have used putenv().Now i wanna give input for putenv() in Runtime.What are all the possible ways to achieve this.
Mohan
|
|
|
|
|
Possibly exporting a function?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Need More information Please.
Mohan t working for N.I.C
|
|
|
|
|
See here [^], please.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
mohant$.net wrote: Now i wanna give input for putenv() in Runtime.
This is a bit unclear. Please elaborate.
mohant$.net wrote: What are all the possible ways to achieve this.
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
The following manifest entry causes some problem in common controls like list control, edit box. etc (Vc++ appln).
Its getting added when i use some third party libraries.
How do i solve this problem?
#if defined _M_IX86
#define PROCESSOR_ARCH "x86"
#define CC_PROCESSOR_ARCH "x86"
#endif
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='" CC_PROCESSOR_ARCH "' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
|
|
|
|
you can also use external manifests, so in the project settings the manifest will be changed.
is _M_IX86 defined?
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
_M_IX86 is defined.
i want to remove 'Microsoft.Windows.Common-Controls' manifest from the manifest file programetically.
|
|
|
|
|
//#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='" CC_PROCESSOR_ARCH "' publicKeyToken='6595b64144ccf1df' language='*'\"")
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
What this #pragma will do?
|
|
|
|
|
the #pragma is a precompiler dirrecte which in this case will inject a manifest. To avoid it comment it out.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
since #pragma is defined in thirdparty files, we cannot modify them.
May be we need to do it different way.
Is it possible to remove that #pragma by programatically? Or by some settings in our application?
|
|
|
|
|
I dont know
Maybe modiying the code or copying the interesting parts in a separate file.
#define _M_IX86 in the project settings or in the stdafx.h like "#define _M_IX86 1"
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Can't you use the Microsoft manifest tool[^] to modify/remove the manifest? Another option is to call the SetWindowTheme Function[^] on the affected controls. Maybe call it on all child windows?
SetWindowTheme(m_YourControl.m_hWnd,L"",L"");
Although this seems more like a hack.
Best Wishes,
-David Delaune
|
|
|
|
|
Hi,
I am very new to VC++ and I got to work in VC++. My requirement is to call dll from an exe and I need to pass some value to the dll. I need to use that value in the dll.
I am using LoadLibrary method to invoke the dll. But how to pass a value and how to use that value in the dll. Please help me.
for example:
LoadLibrary("test.dll", "display this text");
On load of dll (::OnInitDialog()): i want to display the message "dispay this text".
How could I do this. Please help me out in this.
Thanks in Advance,
AR Reddy
|
|
|
|
|
see GetProcAddress[^]
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Thanks sashoalm,
Now I got to know how to pass the value to a dll. But how to get that value from dll method. Please let me know. I am very poor in VC++.
Thanks in advance,
AR Reddy
|
|
|
|
|
You first need to read some basic document about, see, for instance [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
AR Reddy wrote: ...and I need to pass some value to the dll.
There's no such concept. DLLs contain exported functions. You first have to load one of those functions (via GetProcAddress() ) and then pass arguments to it.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi All
How to get MySQL install path?Plz help me
|
|
|
|
|
look in the install directory of yor harddrive and search for the string in the registry. Somewhere it stands..
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
There are two ways:
1. Using registry: The path can be read from
HKEY_LOCAL_MACHINE\SOFTWARE\MySQL AB\MySQL Server 5.1\Location
2. Using mysql database
use mysql;
select @@basedir;
-Saurabh
|
|
|
|