|
ok, after cleaning up the build, I got unresolved external symbol errors for __CrtDbgReportW, symbol __malloc_dbg, symbol __free_dbg, symbol __calloc_dbg. Are there any libraries I need to include manually?
Also I get a warning message -
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
but when I do that, I get too many unresolved symbol errors.
Thanks.
Shankar
|
|
|
|
|
When I try to make changes to my code while debugging and recompile, I get this error:
Compiling...
'~vcecho!' is not recognized as an internal or external command,
operable program or batch file.
Error executing ~vcecho!
This doesn't error happens only in one particular project. On other projects, I have no problems using edit and continue. I really like being able to fix code while I'm debugging, but on this project I can't.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
i have two buttons in a dialog box. i could not take the control from one button to another using keyboard. it's working fine with mouse Lbutton click.
could any one come up with the reason, please.
|
|
|
|
|
Hi,
You better use Tab key.
Set the Tab order using Ctrl+D in the Dialog resource.
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
Did you set tab for your controls on the dialog?
|
|
|
|
|
Hi all,
I want to store bmp from urls by using URLDownloadToFile..
for example I want to store urlicon of www.yahoo.com by using http://www.google.com/s2/favicons?domain=www.yahoo.com
This url gives me the Yahoo icon.
Now I want to store this so I have used URLDownloadToFile, and It get stored also .
but by using LoadImage, I couldn't load this stored image.
Please suggest me solution or some other way of downloading fevicons of urls.
Thanks in advance.
|
|
|
|
|
I dont know you asked this question previous or no but you must be extract controls on the web page and on the codeproject we have a simple for it.
|
|
|
|
|
What error is LoadImage() returning?
|
|
|
|
|
Thanks for reply..
I have resolved the problem.
Sorry for delay in reply..
|
|
|
|
|
|
Hi,
There is no way to make the maximize box invisible if you have minimize box.
If you dont want the minimize box also. Then use
cs.style &= ~WS_MAXIMIZEBOX;
cs.style &= ~WS_MINIMIZEBOX;
Now only you will get window without Maximize box and Minimize box.
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
Hi,
I would like to store a word in a string array. here is my code:
cArray = new char[str.GetLength()+1]; //here actually store the words that I key in the edit control.
Str1[100];
when the program detect the "space" it will store the previous character that had been read. For example: i have the code to read the character 1 by 1. But then im unable to store the "how" word in an array. I will only store the "h" instead of full words. Is there any code to advice? thank you.
|
|
|
|
|
Could you post the code you've written so far?
BTW Do you know CString exposes the PCXSTR operator [^]?
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
actually here is my code to read the text that i write in the edit control.
CString str = m_sText1;
char *cArray = NULL;
int g = str.GetLength();
cArray = new char[str.GetLength()+1];
strcpy(cArray, LPCTSTR(str));
CString word[20];
CString str1[20];
int c=0;
int a=0;
for(int i=0; i<g; i++)
{
if(i!=(g-1))
{
if(cArray[i]!= ' ')
{
word[c]=cArray[i];
c++;
}
else
{
str1[a] = word;
a++;
}
}
m_Text1 = str1[0];
}
here is the code. But i don know how to store the word. it will just store 1 by 1. Maybe my code is wrong. Thank you for answering me
|
|
|
|
|
If you need to separate words, using the ' ' character, then I suggest you using CString::Tokenize method, in its documentation page [^] there is a code sample very close to such requirement.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi Pallini,
Thx a lot..... Thx a lot... Im able to load the words. Need to modification then i can load the word into string array. As i need to pass the words that i read to go into other function. Thx a lot....
I try to do it now.. If later i success then inform u..
|
|
|
|
|
You're welcome.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You're welcome too.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Nice to know, THHB 's buddy.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Have you looked at AfxExtractSubString() ? For each 'word' that it returns, you could store it in a CStringArray object.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hello,
I got a class from code project CHyperButtonEx derived from CButton class. With this class i am able to colour the background of a button.
The first problem i am having is that as i take my mouse over the buttton the background color which is initially green in colour becomes white. I dont want it to change when i take my mouse over it.
The second problem is that I am having three buttons one of green colour background while the other two are in red colour. Now what I want is that when i click the any one red coloured button it should turn green which I ma able to do.
But at the same Time I want to change the colour of other button from green to red. The colour of the green button is changing from green to red only when i take my mouse over it. I want it to be changed a soon as i click it.
Pleae tell me what to do.
Thanks In Advance
Dhiraj Kumar Saini
|
|
|
|
|
Hi All
How can i get filesize?I have a file name with full path and i want to obtain it's size.Plz help me
|
|
|
|
|
|
Thanks for reply problem solved
modified on Saturday, October 18, 2008 5:09 AM
|
|
|
|
|
Hi all,
Does anyone here know anything about packed image? any reference?
The story is: I just have my explorer.exe back to normal again. Process Explorer indicated "C:\PROGRA~1\INTERN~1\INTERN~1.dll" was loaded every time explorer launched, and explorer end up crashing. What special about this dll is that it was highlighted in purple(packed image category) and it was said that the packed image is probably a malware. So I tried to locate this dll but only find "internetapi.dll" questionable, I proceeded to delete this dll and the problem went away. I have several quick questions in mind:
1. How this dll gets loaded? There must be a process that injects the dll every time explorer starts. I found explorer itself was intacted. I didn't not find any suspicious process running at the time.
2. Why it was appeared as "C:\PROGRA~1\INTERN~1\INTERN~1.dll" instead of the real dll "internetapi.dll"
3. Is "PROGRA~1" a hidden folder? Does '~' get translated to anything else
4. What exactly is "packed image"?
Thanks,
|
|
|
|