|
You could use a decompiler like Reflector[^] if the binary was built with managed code (and wasn't obfuscated[^]).
With a Win32 DLL, well, good luck.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
My project is created in Visual C++ 2008 and use DirectX9.
There are many memory leak in my project after the ending of this program. Is there a artcile about solving the memory leak of Visual C++ 2008 in the Code Project?
|
|
|
|
|
|
Hi All
How can i add string in list box fast?I have a file which have 1Lakhs lines.If am adding these line like this
if(file.Open(Name,CFile::modeRead))
{
CString strname;
while(file.end)
{
file.ReadString(strname.Trim());
if(strname.IsEmpty())
{
break;
}
else
{
m_list.InsertString(i,strname);
}
}
file.Close();
}
Then Dialog is showing notresponding.Plz help me How can i add fast.
|
|
|
|
|
You need to probably restructure your problem. First: Do you really need to display 1 lac lines in the list box...
I don't really think that any user for your application would be really interested in reading or going through that many lines of text at a time.
If not can you use some kind of paging mechanism rather than reading the whole file. Only read the number of records that you can display at a time.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Put this code into a worker thread[^] so the UI remains responsive.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
this following piece of code is used in win32 programming.
this plays a vital role in servicing the messages.
CODE IS::
while (GetMessage (&msg, NULL, 0, 0)) {
TranslateMessage ( &msg );
DispatchMessage ( &msg );
}
i want to know how is it translating messages actually? (from which format to which format?)
thanks.
rakesh
|
|
|
|
|
The code looks self-explanatory, given the docs explain the APIs.
Rakesh5 wrote: (from which format to which format?)
Virtual-key messages to character messages[^], according to the documentation.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rakesh5 wrote: Re: can anyone explain this piece of code?
yes, A good book - say Charles Petzold
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
The role of TranslateMessage is to generate more "high lavel" messages from the "low level" ones that come directly from the input.
The typical case is WM_KEYDOWN/WM_KEYUP that, if observed for certain keys and shifts, generates WM_CHAR and WM_UNICHAR.
All new messages are re-posted on the same message queue, and hence fetched from GetMessage tehmselves.
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
How to convert string “ABC” to “BCD”
into UNICODE?
CString strSource;
strSource = L"ABC";
TCHAR SourceFile[100];
_tcscpy(SourceFile, strSource );
MessageBox(SourceFile); // display "ABC" - OK!
below 3 operators are unproperly !
SourceFile[0] ++;
SourceFile[1] ++;
SourceFile[2] ++;
MessageBox(SourceFile); // display ">BC"
|
|
|
|
|
I've tried your code in Microsoft Visual C++ 6.0 in an ANSI system and it seems to work properly. That is, it first displays "ABC" and then "BCD".
|
|
|
|
|
Hi all,
i m creating a modless dialog,and display it over main dialog at certain condition,while back processing is contine this modless dialog box display when processing end than its hide or destroy.
its working when when i simple display and hide after end of processing.
in background i m inserting values in ListCtrl.
but when i display a text over modeless dialog box ,with use of setwindowtext i set the text of static control of modless dialogbox,i m displaying each item that is to be inserted in listctrl.
when i do this the main dialog box is hang,and erase all background.
please help me wat can i do?
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Use a thread, don't do everything on the main thread. When you do some time consuming task on the main thread the result is more like what you are facing right now.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Hi All,
I am stucked in a problem. I need to jump at a file's MFT record. Is there any way or API which can tell me the logical cluster number of a File's matadata location. I have to read the files data run which is in the MFT. FSCTL_GET_RETRIEVAL_POINTERS gives me the data run as well as the extends , but it doesnt provide the LCN of that location.
Is there any method which can provide me the LCN of a metadata file(MFT)of any particular file.
Thanks in advance.
CmyLife
|
|
|
|
|
Hi I am new to this embedded coding and i need to connect to the SQL CE database for windows CE database. i am using standard SDK in visual studio 2005 environment. when i use DBPROPSET it is showing C2065 undeclared error. The same error is coming for the other structures also.
could any one help me in connecting to the database ( SQL CE ) and access the database for inserting and retrieving.
a sample code snippet would be helpful.
Thanks in Advance.
|
|
|
|
|
Hi
I am using a CEdit control, however when the user exceeds 256 characters, the cursor jumps to the start of the control
rather than continuing on
Can anyone help at all
thanks
Simon
|
|
|
|
|
CEdit::SetLimitText : Call this member function to set the text limit for this CEdit object.
A CEdit has a max size of 64K
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Hi
I have tried using
m_c_message.SetLimit(3000);
but the same happens as soons as i exceed 256 charc the cursor jumps to the start
Can anyone help
thanks
Simon
|
|
|
|
|
Is it a single line edit control?
Check if you can set the multi line property of the edit control to true and the want return property as well to true.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
_AnsHUMAN_ wrote: Is it a single line edit control?
No it is a multiline and the want return property is set to true
Any ideas ?
Simon
|
|
|
|
|
Hello Friends
Do u know any function which closes all open files so that i can delete that file b'coz i m using movies function and i used closeMovieFile() but still after that i m not able to delete so is there any other that closes all open files?or suggest me some other way?
Thanks
Yogesh
|
|
|
|
|
if it is files then u can use _fcloseall()
|
|
|
|
|
it is not file it is .avi file.
|
|
|
|