|
Thanks for the help, guys. I found that my problem was using the double quotes around the file paths and not specifiying a filename in the 2nd parameter.
Royce
|
|
|
|
|
I recently had some code sent to me by a user of one of my articles that improved the functionality of my article. The code is designed to work with VC8. But as I want the code to work on VC6 and up I have to put guards around it. So my quuestion is what version of VC introduced the __FUNCTION__ macro and what version introduced the __noop keyword?
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
I believe __FUNCTION__ was first introduced in VC7, which was my final straw to upgrade from VC6. As for the __noop , I'm not sure.
-- modified at 15:16 Wednesday 22nd November, 2006
__noop also added in VC7
|
|
|
|
|
Thanks
I am assuming you mean VC7.0 (2002), not VC7.1 (2003)
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
PJ Arends wrote: I am assuming you mean VC7.0 (2002)
Probably a little late, but yes
|
|
|
|
|
Is there a way to add more than one event handler in VC++ 2003 like we could do in VC++ 6.0?
Adding multiple OnUpdate handlers for my menus is really getting me down as it insists on resetting the tree ctrl and the grid in the dock bar in VC++ 2003.
Basically, is there a trick to prevent the tree or grid from resetting after each addition?
|
|
|
|
|
Huh?
bob16972 wrote: Is there a way to add more than one event handler in VC++ 2003 like we could do in VC++ 6.0?
Event handlers for what events?
bob16972 wrote: Adding multiple OnUpdate handlers for my menus is really getting me down as it insists on resetting the tree ctrl and the grid in the dock bar in VC++ 2003.
How are OnUpdate handlers related to tree and grid controls?
bob16972 wrote: Basically, is there a trick to prevent the tree or grid from resetting after each addition?
Each addition of what?
Sorry, I have no idea what you are asking
|
|
|
|
|
Sorry, I'm referring to the VC++ 2003 IDE.
The tree I'm referring to is the ClassView tree.
The grid I'm referring to is the grid in the properties dockbar.
I'm adding Event handlers to respond to menu events. I choose a class (i.e. CFrameWnd derived class like CMainFrame) in ClassView, select the "events" button in the "Properties" dock bar which shows a grid containing all the Events I can choose to write a handler for. Then I choose to add an OnUpdate handler for one of my menu's submenu items (identifying it via it's Resource Symbol).
My handler code is added to the class' files and the "Properties" dockbar goes blank (No grid showing anymore). This requires me to do it all over again for the next menu event handler...etc...
*************************
In Visual C++ 6.0, we were able to add many of the menu event handlers, pretty much at the same time using the same instance of ClassWizard. We could just select a class in the wizard and double click as many event handlers as we wanted, then hit OK and they'd be added to the class.
*************************
Is it possible to add more than one handler at a time like this in VC++ 2003?
|
|
|
|
|
Now I got it, thanks I had a feeling it was that....didn't make sense for code.
That drives me nuts...I wish I could help. I'll be watching to see if someone has a solution
though!
Mark
|
|
|
|
|
Hi there,
I have an application that is receiving messages from some mobile devices from eight different locations through GPRS using UDP sockets, and I am supposed to send the messages to the 2nd application using TCP/Ip sockets some how that there will be no confusion for the response that comes from the 2nd application that I am supposed to transfer to the device that has sent the original message. For example if I can have the same Ip address and use 8 different ports for that to send to the 2nd application and receive the response back. Th question is how can I do that without creating 8 sockets?
Appreciates any idea
|
|
|
|
|
I think your two choices are
1) Use 8 separate TCP/IP sockets, 1 for each mobile source.
2) Use one TCP/IP socket connection and wrap the UDP datagram in a packet containing a header that
indicates which mobile source the message came from. The same way a TCP packet wraps an IP
packet.
Mark
|
|
|
|
|
Thanks for the tip, but the 2nd applicstion does not check the header that actually is there containing the mobile id, group id.
Regards,
|
|
|
|
|
nahitan wrote: ...the 2nd applicstion does not check the header that actually is there containing the mobile id, group id.
Bummer
|
|
|
|
|
How do you turn on Intellisense with Visual Studio 6? Thanks!
Norman Fung
|
|
|
|
|
by opening a project...
if you opened a cpp file alone, it can't work.
but as you don't provide much information, i can't tell you exactly what solution fits your problem...
|
|
|
|
|
yes, i openned a workspace and intellisense was there for some project and not there for some others...
Norman Fung
|
|
|
|
|
then, delete the temporary files generated by Visual C++ (there a particular file, maybe .ncb, but i'm not sure, i can't remember which exactly to delete)...
dont erase the .dsp nor .dsw
|
|
|
|
|
Let me try this in a few hours ... it'd be very nice if this works
Thanks.
Norman Fung
|
|
|
|
|
toxcct wrote: then, delete the temporary files generated by Visual C++
ahhhh those were the good ole days... NOT!
led mike
|
|
|
|
|
Close the workspace, delete the workspace_name.ncb file, then reopen the workspace.
|
|
|
|
|
Dear All,
I am using MSXML. Here this below function asking binary string.
"spText = spDocOutput->createTextNode((_bstr_t)Data);"
I have Multibyte/Unicode strings only.
How can i write those string in an XML File using this above code ?
Kindly Help me.
Thanks.
Bye.
|
|
|
|
|
It is not so clear what you intend to do. Anyway, maybe the following overloads of the _bstr_t constructor will be useful:
_bstr_t::_bstr_t( const char* s2 ) throw( _com_error );
_bstr_t::_bstr_t( const wchar_t* s3 ) throw( _com_error );
|
|
|
|
|
Sakthiu wrote: Here this below function asking binary string.
BSTR is NOT "binary string".
BSTR is a string format similar to PASCAL strings where the first 4 bytes of the string specify its length and each character in the string is a wide character (that is, uses 2 bytes).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
And it is also NULL terminated. But this is just academia...
|
|
|
|
|
I think you can try the save member of parent DOMDocument object, but it writes the entire XML document, not only your element. If you need just one element, I think you can obtain the XML representation of the node using xml property, probably like this:
_bstr_t xml = myNode->xml;
Then write this string using file functions. Note that in case of text node, the returned XML string probably will not differ very much from the value you passed to createTextNode function.
I hope this helps.
|
|
|
|