|
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
|
|
|
|
|
0rigin wrote: 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".
If the function pointed to is a class member function (method) then that method needs to be
declared static if it's going to match your BasicObjectListener type.
Otherwise, it should work fine.
Mark
"I'm the Dude. So that's what you call me. You know, that or, uh, His Dudeness, or uh, Duder, or El Duderino if you're not into the whole brevity thing." The Big Lebowski
|
|
|
|
|
Ok, I flopped some code around and what you described does in fact work, but I'm looking for something else. Since a static function is shared by all instances of a class it defeats the purpose of what I'm trying to accomplish.
I need to be able to call a dynamic list of function pointers without a type requirement. So for the code I gave in my first post, I want to essentially register ("Add a Listener") to a specific objects attribute and when that attribute gets changed through an Set function notify everyone who registered with that attribute of its change.
Got any nuggets of wisdom to point me in the right direction?
|
|
|
|
|
0rigin wrote: I need to be able to call a dynamic list of function pointers without a type requirement
This is tough because C++ is a strongly typed language.
You can keep a vector of member function pointers but to call those functions through the
pointers you'll need an object of the class the function is a member of.
That means you'll also need to store objects to make the calls on (i.e. "registrants" also need
to register an object along with the function pointer).
If the objects are all the same class (or a class derived from a common class) then one function
pointer typedef could be used, like you're doing.
If the objects are all different class types then you'd need to have separate typedefs for all the
separate member function pointers.
I don't know if those are "nuggets of wisdom"
Mark
"I'm the Dude. So that's what you call me. You know, that or, uh, His Dudeness, or uh, Duder, or El Duderino if you're not into the whole brevity thing." The Big Lebowski
|
|
|
|
|
Sounds like the problem I had a little while ago... so I implemented a callback wrapper class with virtual functions to accomplish this. See the tutorial on functors in the function pointer tutorials.
|
|
|
|