|
if ( youdontspam )
{
breakpoint-->*youarewelcomehere //Yeah it reaches here!
}
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
Is this some kind of sophisticated cross-posting?
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Just tried *routing* people to the destination
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
Hi
How do I open a new form from a running form ?
regards
|
|
|
|
|
|
Hi
I want to modify nonclient area of windows application,i.e. to modify font in caption, menu and so any body have some hint about this then please send me.
Thanks and Regards
Atul Mahajan
Atul
|
|
|
|
|
Look here [^].
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.
|
|
|
|
|
Is there any Tool Using which i can upgrade my VC++ Project to VC++.Net Project for Windows Vista.
|
|
|
|
|
With C++ it's easy - turn on the managed code option (/clr ) in your project settings, and rebuild.
|
|
|
|
|
hi !!!
i am using an Owner drawn ListBox which contains an icon and an associated string.
i am not able to load icon from the specified file path.presently i am importing to the resources and loading icon with the resource ID.
Need Help Urgently.
PHANI.
|
|
|
|
|
Use LoadImage with LR_LOADFROMFILE flag. See details on MSDN [^].
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.
|
|
|
|
|
hey my friend made the tic tac toe game and i will add the intelligent part to make it oneplayer Vs computer
i want to find a way to make a prolog dll and to access it using c#or c++
for example i have
predicate : player1(Move,Cpu_response)
so say i did the Dll file of visual prolog 5.1 now i need to access it through the C# or C++
in brief (how to link the prolog to C# or C++ )
FOR ISLAM
|
|
|
|
|
Hello,
I'm trying to make a program that will have to exchange information with another program. In order to be able to do that, I need to import one OCX and a couple of files: one file that has the extension CIE and another one that has the extension CLS.
Anyone has any clue on how to import those files?
I've googled it and I've not found anything interesting.
As always thank you in advance.
|
|
|
|
|
Hi,
I am using serialize to write out my MFC application document data. I want to have names in the file dialog post-fixed with a file extension, like "binky.dfg" (.dfg is the file extension). I understand I need to call CWinApp::RegisterShellFileTypes(...). However, this will only work if I set the appropriate string for the file extension in my CSingleDocTemplate. I browsed around and found CSingleDocTemplate.GetDocString(...). This will let me read what the file extension is for my document. But how do I set a file extension? There is no SetDocString(...).
It looks like the CSingleDocTemplate members I am interested in are some/all of regFileTypeId, regFileTypeName, filterExt, or filterName. I'm not sure which one I should be working with. Also, these are member variables of the class. Shouldn't I be not touching these directly? Rather, shouldn't I be using some class member functions to do the work?
Help?
Max
|
|
|
|
|
If you are using CFileDialog then look at the second parameter lpszDefExt of the constructor
CFileDialog( BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, LPCTSTR lpszFilter = NULL, CWnd* pParentWnd = NULL );
Regards,
Paresh.
|
|
|
|
|
Hello All,
I am pretty new to MFC and Visual C++. I would want a little help on MFC serialization. If possible could some one please give a small piece of code as to serialize an object to a file and then deserialize it?
thanks in advance.
Keshav Kamat
India
|
|
|
|
|
|
thanks. this was the exact thing i was looking for. I wanted the concept of the CFILE.
Keshav Kamat
India
|
|
|
|
|
If you are using the Doc/View architecture, you can do some simple document writing:
void CYourDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring()) {
ar << an_int
<< a_double
<< a_CString
<< a_short;
} else {
ar >> an_int
>> a_double
>> a_CString
>> a_short;
}
Make sure the order and size of the data you write is identical to the order and size of the data you read, otherwise kaboom. If you want to serialize your own classes, you need to inherit them from CObject. It is also a bit more complicated. Websearch for DECLARE_SERIAL, IMPLEMENT_SERIAL. These are macros that you will need to add to your class. Finally, when you actually write the code to do the serialization of your class objects, you will need to over-ride Serialize(...), which your class will inherit from CObject. In your Serialize(...) over-ride, you will implement the necessary code to write your class object to a file. It will be pretty much the same as the sample code above. So, e.g., your class has an int size; member variable, you will do ar << size; in your Serialize(...) over-ride.
Max
Max
|
|
|
|
|
Thanks. really appreciate it.
I know how to work with all the components individually.
the problem is putting all together in vc++ 6.0 as an application.
thanks anyways.
I got a pretty decent idea now.
Keshav Kamat
India
|
|
|
|
|
Dear Friends,
I am using MSHFlexGrid control. And i want to merge two cells. Can anybody please help me to do that?
On MSDN I got one example but i m not able to use the same .
Help Need urgently.
Megha
|
|
|
|
|
Hey Guys,
Is it possible to display two fonts or more in the same CEdit control?
I need to display a price in a special format, something like this: 12.2536
Thanks in advance
|
|
|
|
|
No. There's no formatting information in the text of a standard edit control.
You can do it with a RichEdit control though.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
|
you have to declare extern such variables in the header file
and define them in the proper cpp file, for instance:
extern int iGlobal;
in the header file and:
int iGlobal;
in one and only one cpp file.
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.
|
|
|
|