|
I have no idea what is wrong with your system - have you ruled out a hardware problem? Are any other applications or your system affected?
Have you run a virus/spyware checker recently?
[I cannot stand people that vote on something without providing feedback when their vote may not be obvious. I cannot imagine any intelligent reason to vote your post a "3"...]
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Nothing in Quarantine folder.
None of my application are affected and everything works fine.
The only changes I've done in Tools->Options->TextEditor->C/C++->Tabs
changed tab size from 4 to 2. resulted in indentation in source code shifted.
returned it back from 2 to 4 to get original indentation
9ine
|
|
|
|
|
|
9ine wrote: ...breakpoints started to appear randomly in the code...
I've seen this several times with VC++ v6.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I have to create transparent static text in an ATL Composite Control.
I did map WM_CTLCOLORSTATIC & WM_CTLCOLORDLG messages like
MESSAGE_HANDLER(WM_CTLCOLORSTATIC, OnCtlColorStatic)
MESSAGE_HANDLER(WM_CTLCOLORDLG, OnCtlColorStatic)
LRESULT OnCtlColorStatic(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled )
{
bHandled = TRUE;
SetBkMode((HDC) wParam, TRANSPARENT);
return (LRESULT)GetStockObject(HOLLOW_BRUSH);;
}
But the Static Text not become transprent. What should I do? ( This is a non MFC ActiveX)
( When I called ::SetBkColor((HDC) wParam, RGB(0,0,255)); from this function, the bg color changed)
Any hints will be great help
|
|
|
|
|
There are a lot of example on how to hook keyboard and mouse, but i still can't find an example about hooking serial communication..
Could someone help me?
|
|
|
|
|
Hi!
I have a multiple page tab with clistctrl in each page.
When I toggle to different tab page, i dont want to see any selected item in clistctrl.
If i select items in list control in the first tab for example, and then go the second tab, when i go back to first tab, no items should still be selected.
how to do that? please help
|
|
|
|
|
I think you have to deselect those elements when you switch the tab. Windows can do it for you. Sorry!
|
|
|
|
|
MFC: In OnActivate(), Deselect all items of the CListCtrl.
~RaGE();
|
|
|
|
|
lorey wrote: ...i dont want to see any selected item in clistctrl.
Use the CListCtrl::SetItem() method.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
...monsocket.cpp(4) : fatal error C1853: 'Debug/reseaup.pch' is not a precompiled header file created with this compiler
-> help me pleaaaassee !!
what should i do this time ?
thankssssssssss
|
|
|
|
|
aren't you compiling with a different compiler from Visual C++ ?
delete the .pch file, and/or disable the precompiled headers in the project settings
|
|
|
|
|
Hi all
I'm looking forward to purchase ExeCryptor (www.strongbit.com) to protect my shareware written in C++. But before I'd like to know independent opinions/experience if any.
My question is: Anybody uses execryptor? Can you tell me smth about? Are there some problems? Is it cost-effective?
Thank you in advance for any reply
Jean
|
|
|
|
|
hello everybody .. i think that it's a stupid question but i need answer thanks my problem is as defined :
//this is my constructor ... in a class
<bold>
varstr= new char[0];
but when i do :
<bold>
cout <<strlen(varstr);< bold=""> it returns : 4
so i need that it returns 0 !!
thank you again
A C++ illetrate
|
|
|
|
|
try this: cout <<strlen(*varstr); - it might work just fine for you. Good luck!
P.S. strlen(varstr); it will always return 4 bytes since it's an ADDRESS
|
|
|
|
|
sorry but definition is a char*.
this is what i have in the header file:
private:<br />
char* definition;<br />
public:<br />
CStrg();<br />
and in the cpp file i have this
CStrg::CStrg()<br />
{<br />
definition = new char[0];<br />
cout<<strlen(definition)<<endl;<br />
}
when i put :
cout<<strlen(*definition)<<endl;
i have this error:
...CStrg.cpp(10) : error C2664: 'strlen' : cannot convert parameter 1 from 'char' to 'const char *'
|
|
|
|
|
don't confuse strlen() and sizeof
|
|
|
|
|
You've allocated memory for your string but you haven't put anything inside it. It's just coincidence that your cout is printing 4.
You also need to do this:
varstr[0] = '\0' ;
BTW, you've only allocated enough space for 1 character and given that strings always need at least one character for the terminating '\0', your string is always going to be empty
0 bottles of beer on the wall, 0 bottles of beer, you take 1 down, pass it around, 4294967295 bottles of beer on the wall.
Awasu 2.2 [^]: A free RSS/Atom feed reader with support for Code Project.
|
|
|
|
|
thank you Taka Muraoka it's works fine
thank you everybody
|
|
|
|
|
Hi All,
I have a non mfc dll(does not contain the CWinApp) which needs to talk to 2nd dll which uses mfc as a shared dll.I want to make a call to the 2nd dll from the 1st one inorder to display a dialog box. I'm using LoadLibrary to load the 2nd dll from the 1st one and using GetProcAddress to get the address of the function which creates an object of dialog box and calls DoModal on it.But when I make a call in this manner, the code is crashing at ASSERT((p = pMap->LookupPermanent(m_hWnd)) != NULL ||
(p = pMap->LookupTemporary(m_hWnd)) != NULL); in Wincore.cpp
Can anyone please tell me what the problem is.
Thanks in advance
Raghu
|
|
|
|
|
have u called
AFX_MANAGE_STATE(AfxGetStaticModuleState());
in the first line of the function which creates the dialog?
nave
|
|
|
|
|
|
Ensure u have called
AfxEnableControlContainer();
Enable3dControls();
nave
|
|
|
|
|
from where should these functions be called
|
|
|
|
|
i think u can do it from dll attach of the extension dll
nave
|
|
|
|