|
Thanks buddies,
When i ran the above as .c ,I got the error C2059: syntax error : ':' ,
But when i ran the above file as .cpp, still i am getting the same error, what is wrong in it??
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Even if i save the file as.cpp and run the program i am getting the error C2059: syntax error : ':'
Why so ??
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
did you ever see in stroustrup's works a struct (or a union - it's exactly the same problem here) inheriting something else (struct, union or class) ????
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Hi!
I am new to this group. I have started working on windows mobile 5.0 for Pocket PC recently. For my application on it I have been using Visual C++ (Not Embedded VC++). While creating the project I was in a confusion of which template I need to select under "File"----> "New"----->"Project------->""Visual C++"---------> "Smart Device"-------------->- ----------->ATL smart device project,
------------>MFC Smart Device application
------------>WIN32 Smart device project
------------->MFC smart device active x control
-------------->MFC smart device DLL
I am completely new to this environment. I wanted to know how to create this project and how to start working on it. Are there any good sites from where I can get the complete information? Please revert if any one have information about all these things. Waiting for your responses.
Regards,
Ravi
|
|
|
|
|
There was a question from a reader in this forum, regarding wrapping the text in teh tooltip control. All you need to do is to set the tip width using SetMaxTipWidth function. CToolTipCtrl will wrap remaining text to next line bu automatically adjusting its height.
see the sample snippet
m_ToolTip.Create(this,0x40);
TOOLINFO ti;
ti.cbSize = sizeof(TOOLINFO);
ti.lpszText = "1. This is Item1\r\n2. This is Item1\r\n3. This is Item1";
ti.hinst = AfxGetInstanceHandle();
ti.hwnd = pWnd->GetSafeHwnd();
ti.uFlags = TTF_SUBCLASS | TTF_IDISHWND | TTF_TRANSPARENT ;
ti.uId = (UINT) pWnd->m_hWnd;
m_ToolTip.SendMessage(TTM_ADDTOOL, 0, (LPARAM) &ti);
m_ToolTip.SetDelayTime(2000,200);
m_ToolTip.SetTipBkColor(RGB(0xFF,0,0));
m_ToolTip.SetTipTextColor(RGB(0xFF,0xFF,0xFF));
// just for more accuracy
CDC* pDC = GetDC();
m_ToolTip.SetMaxTipWidth(pDC->GetTextExtent("1. This is Item1").cx);
SaRath
"D on't blindly follow rules you read somewhere without verifying that it makes sense for your situation!" /
-- modified at 7:36 Tuesday 30th May, 2006
|
|
|
|
|
Gud work.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Hi,
I am a VC++ Developer.I am facing problem to hook the api function Createfile,deletefile.
Actually i want to see a own message box when some file(exe,dll etc) not folder are created and deleted. plz help me to solve this problem.
|
|
|
|
|
Hi,
I'm trying to add resizing to a CFormView in an MDI app, using the ResizableLib from the articles here on CodeProject. Everything works fine, except for ActiveX controls - I can't get a hWnd for an activex control when it's on a CFormView. Everything works fine with the same control(s) on a CDialog.
Can anyone tell me how to obtain the hWnd for an ActiveX control on a CFormView?
(It's an MDI app in VS .NET 2003)
Thanks,
Geoff.
|
|
|
|
|
Hi everybody
Is there anyone who knows a good book or website with tutorial on using ADO
with C++. I need to understand the syntax, smart pointers, COM objects not just copy paste some code. Pls help me i've been searching for a week now for some good reference but onlything i found are same sample codes with no comments.
I really need to understand how to use ADO and start my project. Thenks a lot
|
|
|
|
|
|
Thanks NiceNaidu appreciate the help
i've read the article is very helpfull
if you have anything else in mind pls let me know
thanks again
|
|
|
|
|
|
Thanks WhiteSky
for the links appreciate the help
any books in mind?
|
|
|
|
|
yes but i dont know i write for you my experience
i use from MSDN of course maybe its difficult but i used it. I hope that you can use from it
whitesky
|
|
|
|
|
Ok Thanks again WhiteSky
You 've been very helpfull i'll try some of the code samples from the liks that you gave me and i hope i get them right this time.
I never thought that connecting to a DB with visual c++ will be that hard
Thanks again.
|
|
|
|
|
How to bind the custom defined ID together with the String when adding the String into the Combobox.
Why do this? Cause I want to get the custom defined ID associated with the String but not the String.
For example,
ID | TEXT | 13 | goods from 13th shop | 11 | goods from 11th shop | ... | ... |
The TEXT content is only for display, when selecting, the ID is wanted.(Because by using the ID, I can get more detailed infomation such as a list of goods.)
But with MFC it is seems I can not associate the customed ID with the TEXT ,what is added into combobox when calling AddString method.
Is the Combobox has any way to satisfy the requirement.
If it has not, I have to build a map between customed IDs and the Combobox self-created IDs.
//////////////////////////////
|
|
|
|
|
|
Thank you for your help
//////////////////////////////
|
|
|
|
|
When i opened my project,the IDE shows the error as classview cannot be loaded.wats the reason for that.And my class view tab in project workspace shows nothing.
|
|
|
|
|
I think, This problem is due to some problem in .clw file.Try deleting that file and rebuild the solution again.
This would solve the problem.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Ya,I did like that.I deleted .Clw file and rebuild the priject but the class view shows only GLOBALS not any class.
Pls help me.
|
|
|
|
|
delete .OPT and .NCB Files and Build the Solution.
Still if it fails,
There is class view add-in 'Restore Class View Add-In' at codeproject.. get this and install this. It will show you all classes.
refer here..
http://www.codeproject.com/macro/restoreclassviewaddin.asp[^]
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
<b><i></i></b>Hi!
I want to know whether there is any limit in number of base classes used in multiple inheritance. If there is a limit what is the maximum number of base classes supported?
Maheswar Reddy
|
|
|
|
|
|
An interesting question, indeed. I don't have a copy of the Standard with me to tell for sure. MSDN doesn't mention any such limit; they just say "a derived class can have a number of direct base classes"
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|