|
Hi, here
If I repeat load library in VC:
HMODULE handle0 = LoadLibrary(TEXT("testdll0.dll"));
HMODULE handle1 = LoadLibrary(TEXT("testdll0.dll"));
My program will load the two copies of the testd110.dll in memory? handle0 should be equal to handle1?
Thanks a lot!
|
|
|
|
|
Only one copy of the DLL will be loaded. handle0 will be equal to handle1 . The FreeLibrary will need to be called twice to unload the DLL as you called LoadLibrary twice.
Steve
|
|
|
|
|
Hello, everyone. I am totally a fish in VC++, and have some knowledge in C++.
I was writing a UI program for a software which needs to be run on a smart phoe a few days ago, and now, I need to add a button on the "start" interface of the phone so that I can access the software interface by pressing this button, like I can press the "message" button on the "start" interface, then I can access the interface of "new text", "inbox", " sent items" , etc.
I totally have no idea of what to do, pls help me, thank you !
|
|
|
|
|
My commercial app sometimes crashes for unkown reason on users' site. It's hard for me to reproduce and debug the bug. So I need some crash report SDK to get enough info when the app crashes. It can be online report immediatly after crash, or just some offline log file which users can email to me as attachment.
Any recommendation?
|
|
|
|
|
In my project, I used a control that I get from web and I have modified some of its code. When I build the project in Debug situation it could run correctly. But if I build it in Release situation, when I click the contol, it will throw exception and the programe will be failed.
Have anybody ever meet such kind of situation? Debug is OK, but Release will failed.
|
|
|
|
|
some stuff that might help
- try stepping through the codes in debug mode and inspect each values individually to see if they are valid. sometimes u might get a CString or an int holding really strange values/strings that are unexpected
- initialize all declarations
|
|
|
|
|
Hi,
I just switched from VC++ 6.0 to VS 05. In my project I used FlexGrid in one of my dialogs. Not surprisingly, VS 05 cannot find it. However, based on all the help files etc. I should be able to load ActiveX Controls via the menu -
Project -> References -> Add New Reference
In the Add New Reference dialog, there should be tabs one of which should be COM.
However, there are no tabs available, only a projects tab which is empty.
How do you add an ActiveX component in VS 05?
Thanks
-- modified at 22:40 Sunday 24th June, 2007
|
|
|
|
|
Programmically simulate clicking on webbrowser2 object
how do i Programmically click on webbrowser2 object?
i tried
<br />
<br />
m_webbrowser.SendMessage(WM_LBUTTONDBLCLK,MK_LBUTTON, (LPARAM)MAKELONG(291, 125) );<br />
<br />
m_webbrowser.SendMessage(WM_LBUTTONDOWN,MK_LBUTTON, (LPARAM)MAKELONG(291, 125) );<br />
but they do not work. is there anyway to simulate clicks on it?
there are some conditions that i must strictly follow
- i do not want my actual mouse cursor to move at all.
- the click must be relative to the control, not to the screen
rdgs, hanhao
using VC++ 6.0
|
|
|
|
|
how do i implement IOleCommandTarget
i got no idea what it is
is it a class or a method?
i need to do it after reading a help file here http://support.microsoft.com/kb/261003/
as i am still a newb example code would be greatly appreciated
i am using MFC style with visual c++ 6.0
thanks
|
|
|
|
|
|
how do i use it? can you provide code snippets for my case?
|
|
|
|
|
What frameworks are you using? ATL? MFC? I would use ATL.
Steve
|
|
|
|
|
using MFC
can i use MFC for this?
|
|
|
|
|
|
Have you looked at Qt ? It's primarily used in *nix but they have a windows library as well. You can download all of it (except for hte integrated VS part) for free for use in non-commercial apps. http://trolltech.com/products/qt
|
|
|
|
|
What do you need,excatly?
|
|
|
|
|
Hello,
I have a small question? I would like to know what are the products which can be used with VC6.0++ for making 2D and 3D Charts,also please suggest a freeware library for charts.
Thanks you,;)
Nishant J jaiswal
|
|
|
|
|
|
Dear All
Hi
I want to use a grid control in one visual C++ 6 application.
May you please help me if you have any example.
Regards
Monhi
|
|
|
|
|
Does this help?
http://www.codeproject.com/library/gridprojects.asp
|
|
|
|
|
If I have 2 windows on my computer - on drive C: and drive D:.
I want to run my application from drive C: ,and access to registry on Drive D:
How can i achive this ?
THANK YOU VERY MUCH
|
|
|
|
|
I'm not sure if you are able to do this, but the registry files are stored in [Windows Root Drive]\Windows\System32\config\ from Windows 2000 and later.. If you are running the windows installation to which these files are owned by, you cannot open them, as they are being protected (and used) by kernel32.dll, however if you are running the application using a different installation of Windows, then you should be able to access them, provided you have read access to the registry files.. The registry files are Software, System, SAM, Security, Default, and UserDiff (none of these files have extensions). They all relate to different parts of the registry.
Look at this article for more info.
Good luck! Hope this helps!
--PerspX
|
|
|
|
|
I want to convert a .mid file to .wav file usin MFC... so need code for it or logic behind it...
jd
|
|
|
|
|
hi there,
I want to redirect my buffer data which is the contents of a .mid file to the sound card and then save sound card output as .wave file....
If anybody know how to perform this operation and the functions provided for this in VC++/MFC then kindly help me...
Thanking You....
|
|
|
|
|
I want to make a vector that holds function pointers. I can't seem to make the vector happy when defining it unless I define the function pointer using typedef first. Example:
<br />
typedef void (*BasicObjectListener)( BasicObject *object );<br />
std::vector<BasicObjectListener> EnabledChanged;<br />
But if I call the follow public function from another class it isn't able to convert the functoin pointer I want to pass to a "BasicObjectListener", though the function I'm passing is the same as a "BasicObjectListener".
<br />
void BasicObject::Enabled_AddListener( BasicObjectListener function )<br />
{<br />
EnabledChanged.push_back( function );<br />
};<br />
So I'm currently trying to find a way to define the vector without using typedef because then I can replace all the "BasicObjectListener"s with the function pointer code.
Help me
|
|
|
|