|
s_k wrote:
But...
you opened the can of worms, good luck with it!
|
|
|
|
|
I'm trying to move my code that compiles and links fine on VC6 to VC++ .NET. When I try to link a DLL that uses another custom DLL, I get a bunch of LNK2005 linker errors related to a new CStringT<> class, like:
"public: __thiscall ATL::CStringT > >::CStringT > >(char const *)" (??0?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@QAE@PBD@Z)already defined in CFGCoreUI.obj
where LeadHppD.dll is used by the other DLL containing the CFGCoreUI module. I have experimented with project options, but it has got me nowhere as yet.
Merry XMas to everyone here,
Bartosz Bien
|
|
|
|
|
|
Hello,
I've used WS_EX_LEFTSCROLLBAR and WS_EX_RIGHT and WS_EX_RTLREADING extended styles to make right aligned combo box and a left scrollbar in left !
It works fine on NT (Win2000 or WinXP) systems, But it doesn't work on Win98 Arabic
What's wrong ?
How can i fix it ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi dear,
I'm looking for an article or sample, demonstrates using Office xp(2000) Chart in a VC++ or C# project.
Thank you in advance.
|
|
|
|
|
Hi there,
I have a question for understanding the MFC message routing mechanism. Can I describe the purpose of PreTranslateMessage() as following?
"hey window, I have a message. Do you want to handle it or prevent others to handle it?" - "Hm I think about it" - "hey and window, you might not get it via your normal message handlers if you are not designed to get it, catch it now if you need."
Notes: I found out that sending a message directly to a window does not invoke PreTranslateMessage(). Also in some cases message handler seams not to be called (e.g. a CDialog wouldn't normaly get keyboard messages in OnKeyDown() ), strange.
So, I put my stuff into normal MFC message handler and sometimes catch & forward some messages from PreTranslateMessage() . Is that a good idea?
Thx for a short feedback, Moak
|
|
|
|
|
You are right. It's better to use normal message handlers. PreTranslateMessage is used in special cases when standard message handler doesn't work - for example, to handle all keyboard messages in dialog.
|
|
|
|
|
I create a regular dll and implement certain function in it. Then i create a sample program that uses that function from respective dll. But the problem is that i need to distribute dll with my exe otherwise program not works.
Is it possible that i statically link my dll with program in similar manner we statically link MFC dlls. Condition is that I only have dll and lib but not source code.
|
|
|
|
|
Shah Shehpori wrote:
Is it possible that i statically link my dll with program
No, because DLLs don't work that way. Redo your project as a static library, which will build a LIB file. You can link the LIB into your EXE.
--Mike--
If it doesn't move and it should: WD-40. If it moves and it shouldn't: duct tape.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
One more thing, suppose i am calling a function residing in a dll, will it make any speed/performance difference as compared to calling the same function present inside the exe ?
|
|
|
|
|
Shah Shehpori wrote:
ill it make any speed/performance difference as compared to calling the same function present inside the exe?
The call to a static LIB might be minutely faster, because it doesn't have to go through an import table jump instruction, although it's nothing a person would notice.
--Mike--
If it doesn't move and it should: WD-40. If it moves and it shouldn't: duct tape.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
hi,
1>how to remove keys.
2>how to add sub keys and remove them
3>how to access the subkeys
thanx if even read
Brad
|
|
|
|
|
Try here[^].
Software Zen: delete this;
|
|
|
|
|
hi,
I am drawing these engineering related drawings that need a lot of pre calculation for neat display before actually being rendered to the user.Every time.Zooming included.I (naturally) used CreateCompatibleDC() function,drew onto that, calculated stuff and continued from there.
The problem arises while scrolling.I set the scrolling sizes according to the bounds of the drawing plus spaces.The bound is calculated as said earlier.When i scroll, things get eaten away.However, moving the drawing slowly using the arrow keys works fine.
Why is this happening?Help.Drawing is the soul and life and ... of my sw
Kofi Ntini
|
|
|
|
|
It sounds like the scrolling is not invalidating the correct part of the window.
Software Zen: delete this;
|
|
|
|
|
Sir, I want to develop OutSmtp type application. For that it is necessary to find out MX Record for a particular domain. For example if the To: address is abc@xyz.com, first of all I have to find out the mail server of xyz.com.
How can I get the MX Record of a domain? Please help me....
C.R.Naik
|
|
|
|
|
You should get it from the DNS.
NSLookup might help.
|
|
|
|
|
Sir, is it possible with NSLookup to find MX Record programmatically? If so please send me any code if you have.
Regards.
C.R.Naik
|
|
|
|
|
Look at the DnsQuery and associated routines. Also, check the SMTP RFC for the proper fallback searches for when MX records don't exist.
One problem with DnsQuery is that it isn't support on 9x or NT4. I haven't found an alternative.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Hi,
What is the diffrence between MultiByteToWideChar() and mbstowcs()?
Which API should we make a choice?
Thanks and Merry Xmas!
David
|
|
|
|
|
MultiByteToWideChar() belongs to the Platform SDK whereas mbstowcs is a C Runtime function.
If your application will be only for windows platforms use the first one. If your app may be ported to other platforms use the runtime function.
Gero
|
|
|
|
|
I see. Thank you very much.
|
|
|
|
|
Hi all,
how can I get the DOS environment variables and their substituted values? Microsoft suggests the function GetDOSEnvironment but even MSDN seems not to know this function...
I think I've seen an enumeration function somewhere but I don't know any more where it was.
Thank you in advance!
-Dominik
|
|
|
|
|
Try GetEnvironmentStrings() [^]. This function returns the entire environment block for the current process. The block is laid out as follows:
name1=value1\0
name2=value2\0
...
nameN=valueN\0
\0 where each name,value pair are separate by a zero character, and the block is terminated by a final zero character.
Software Zen: delete this;
|
|
|
|
|
Thank you very much!!!
|
|
|
|