|
m_xTextBuffer is an instance of CCrystalTextBuffer. GetLineChars() returns LPTSTR or a pointer to TCHAR.
|
|
|
|
|
what is szText declared as? If it is CString then OK if it is char* then it won't work
If all else fails use the debugger and step through each line until szText becomes corrupted.
"Laughing at our mistakes can lengthen our own life. Laughing at someone else's can shorten it."
- Cullen Hightower
|
|
|
|
|
|
Well, its nice you figured it out. But dont you think you ought to share it?
I mean, all these people helping you, and all you say is "Thanks - figured it out." ???
Bikram Singh
|
|
|
|
|
I am having major problems adding strings to the end of a CString with +=. Instead of just copying in the text I get a load of ganumph at the end of the string I don't want - e.g. here is one line of text that was produced - ÍÍÍÍÍÍÍÍÍÍýýýý««««««««îþîþ. Why do I get all this rubbish at the end? How do I get rid of it?
|
|
|
|
|
Is the string you are adding NULL terminated? as a test set the last location of the string you are adding to NULL
"Laughing at our mistakes can lengthen our own life. Laughing at someone else's can shorten it."
- Cullen Hightower
|
|
|
|
|
Post an example including the declaration, instantiation, and concatenation of the CString object.
Kuphryn
|
|
|
|
|
problem is in your code somewhere, CString is OK.
only thing which may cause trouble is operator = of CString
cheers
includeh10
|
|
|
|
|
hain i didn't think soo.
i know csting is most persistent calss in vc++.
pls give me your exact problem i will see to it and post reply thanks
I Think It will Work
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
the problem is usually called mapping macromolecular topography
I got a file of a set of coordinate in 3 dimensions that form
any shape possible. The coordinate are the coordinate of amino acids that constitute a protein.
I need to extract the coordinate that constitute the surface of the shape
I ve got no idea how to start
If someone could help me it would be great
thanks for every idea
xc
|
|
|
|
|
Is there anyone that can help me,
I need to disable the desktop, Taskbar and the task switching keys and Ctrl+Alt+Del.
Well is there anyone that can help me?.
|
|
|
|
|
If you look at the recently submitted [^] articles to codeproject, you'll see an extremely useful article...
Lock Windows Desktop[^] - afeijao
Restricting windows access by hiding desktop windows and disabling special keys
It's got a 4.38, so somebody has found it and read it!
Iain.
|
|
|
|
|
ok,
But ho can I use it in MFC without using the klick controll.
I just need to use some of the funktions. Do you have any idea.
|
|
|
|
|
How about using only the relevant parts of the article?
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Well how can I do that without using the checkbox that there.
I just want a MFC app that disable some of the sings in that program.
|
|
|
|
|
|
Well how do I use it in MFC?
|
|
|
|
|
hian i am created a dll for this.
if you like that pls give me your email address i will post u sourcecode for that
thanks
I Think It will Work
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Thanks you are a life saver,
My e-Mail is:
larsson.develop@telia.com
|
|
|
|
|
i want to know how use post method with internet api's
i know how to use Query string but i want to know how to use post method
the query string method is giving below
CInternetSession session("NMPRegister");
CString Querry;//Querry String
CStdioFile *pFile;
BOOL bFlag=TRUE;
CString strRegisterSiteName;
strRegisterSiteName="http://nmp/alive_info.nmp";
//making Querry String
Querry.Format("%s?comp_ip=%s&comp_name=%s&os_type=%s",strRegisterSiteName,m_Dlg->m_nmpLocalHost.MachineIp,m_Dlg->m_nmpLocalHost.MachineName,m_Dlg->m_nmpCheckWindowsVersion.WindowName);
m_Dlg->AddToFile("Querry ="+Querry);
////Register the computer via querry string
while(1)
{
bFlag=TRUE;//saving Program from crash
try
{
pFile=session.OpenURL(Querry,1,INTERNET_FLAG_TRANSFER_ASCII|INTERNET_FLAG_RELOAD|INTERNET_FLAG_DONT_CACHE);
}
catch(CInternetException *pEx)
{
char lpszError[100];
pEx->GetErrorMessage(lpszError,100);
m_Dlg->AddToFile("error"+CString(lpszError));
/*//MessageBox(lpszError,"alok");
//pEx->ReportError();
*/
bFlag=FALSE;//checking some error hasd occur save program form assertion
}
i want in post thanks a lot
I Think It will Work
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
|
What are hooks in win32 ?
Why are these hooks used?
Can anybody give me a live example of this?
Regards
Tiger007
|
|
|
|
|
|
Hi!
I don't have the latest platform SDK and need some definitions of macros and constants, please.
Constants:
LVBKIF_SOURCE_NONE
LVBKIF_SOURCE_HBITMAP
LVBKIF_SOURCE_URL
LVBKIF_STYLE_NORMAL
LVBKIF_STYLE_TILE
LVM_SETBKIMAGE
Macros:
BOOL ListView_SetBkImage(HWND hwndLV,LPLVBKIMAGE plvbki);
Could you look up for me how these are defined?
Thanks in advance and best regards,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
I think it would show a space on screen?
__asm mov al, 0xAD ;copy space to al register i think
__asm out 0x64, al ;don't know what out exactly does, but I assume, my answer
correct?
Normally in C++
#define BLABLABLA 3
or
#define BLABLABLA "astring"
...
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimmy Hendrix
|
|
|
|