|
in VS2008 u can try #pragma comment(linker,...) directive too.
eg:
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
|
|
|
|
Thanks for reply, I am using VS 2005.
And I have added before one manifest for my win32 progress control now I am going to add manifest for UAC. But how to combine these two manifest?
|
|
|
|
|
|
Hi all,
I need a Program to monitor network traffic and use filter to get selected URLs using winpcap library and win32 in C++.
I've seen code in http://www.codeproject.com/KB/IP/URLLogger.aspx?msg=2288055#xx2288055xx but that is not working. Can anyone having the workable code to resolve my issue? Plz let me know. It's URGENT!
Thanks
Subrat
|
|
|
|
|
Member 4708266 wrote: It's URGENT!
Oh no it isn't!
It's time for a new signature.
|
|
|
|
|
I think you can search for the documents in http://www.winpcap.org.
If you want others to help you sovle this problem, you'd better put your problem source code here
|
|
|
|
|
|
Member 4708266 wrote: Can anyone having the workable code to resolve my issue? Plz let me know. It's URGENT!
Dear nothing is urgent, people here aren#t paid to help other! anyways
Member 4708266 wrote: http://www.codeproject.com/KB/IP/URLLogger.aspx?msg=2288055#xx2288055xx
you have to ask author directly, i hope he can help you out!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi all,
I am using IPersistFile::Save Method. My problem is i am passing a CString variable in this function and compiler is giving error C2664: 'IPersistFile::Save' : cannot convert parameter 1 from 'CString' to 'LPCOLESTR'.
hres = ppf->Save(szLinkName,TRUE);
ppf>Release();
szLinkName is a CString variable which is being passed in this function..
How can i convert it???
Thanks in advance
|
|
|
|
|
Try: Please tell my how to change from cstring to LPOLESTR and make my code right: [^]
|
|
|
|
|
Before you pass your CString convert it into BSTR or LPCOLESTR
const LPCOLESTR* pCole;
int iLen = strlen(szLinkName);
memcpy(pCole,szLinkName,iLen);
hres = ppf->Save(pCole,TRUE);
ppf->Release();
|
|
|
|
|
@Intersect☺™ wrote: const LPCOLESTR* pCole;
int iLen = strlen(szLinkName);
memcpy(pCole,szLinkName,iLen);
hres = ppf->Save(pCole,TRUE);
ppf->Release();
Note the parts I've underlined. This code will cause nothing but trouble.
Steve
|
|
|
|
|
try
CStringW wszLinkName(szLinkName);
hres = ppf->Save(wszLinkName,TRUE);
ppf>Release();
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]
|
|
|
|
|
what about using #define UNICODE 1
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I am good at MFC, but English is poor, who can teach me EngLish~
please send Email for me:5224963@163.com
|
|
|
|
|
Please try to understand that, this not a English teaching forum
If you have any problem related to MFC or C++ or VC++, ask here.
You entered into a wrong forum.
Величие не Бога может быть недооценена.
|
|
|
|
|
fyl222 wrote: who can teach me EngLish
An English teacher, I suppose.
However I guess the C++/MFC forum is not the best place to search for.
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]
|
|
|
|
|
|
Wow, the Grand Negus comes back from the past!
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]
|
|
|
|
|
It's been done: It's called COBOL.
|
|
|
|
|
I am also poor in english, still I am trying to improvise daily. As this community belongs to Programming Language only, so probably you will never find any good teacher here, You better join any english class, read more & more news papers loudly, follow grammer books to frame your sentences & dictionary to build up huge stock of words.
|
|
|
|
|
you make me so disappointed.
why cann't you learn it yourself anymore ?
such as iciba[] .
|
|
|
|
|
Oh, this man is excellent.
You know how to learn English on the website of iciba.
|
|
|
|
|
Because the questioner and me all is Chinese.
|
|
|
|
|
Anyone who wouldn't teach you grammar. Learn vocabulary.
Avoid grammar like death. Grammar kills your English/Turkish/Chinese/kids/animals/...
Funny thing is, by focusing on vocabulary ONLY, you WILL learn grammar, but *effortlessly*!
That's how a 10 years old English boy uses past participles and conditional structures correctly, although he never studied grammar! It's magical!
That's the "natural" way of learning a language.
And idiots try now to figure a better way of teaching languages, when "nature" already showed the least painful, most effective way of doing it: with 0 grammar!
Speaking "grammar" to people who won't make it their job/specialty to study/teach English is a CRIME against English (and students).
Nature found this "magical" trick :
By getting to understand more and more words in a text, you will get less and less intimidated, and more and more motivated to read more, and even to dare speak the language. This "motivational" process is insanely powerful, it is auto-accelerated: the more you get comfortable, the more pain turns into pleasure and confidence, which motivates you to go even further, and so on..
In this process, grammar is a killer. It just sucks all the motivation out of any student, glorifies pain over pleasure. An insanely effective killer!
By avoiding grammar, I learned to speak 5 languages.
Funny thing: my French is better (grammatically) than the average French guy's Although my pronunciation isn't..
My Arabic is, by far, better than 99% of the native Arabic speakers.
Same thing applies for spelling: I perfectly understand and speak Italian, but I can't write a single Italian word! (well, "I" is "io" in Italian, I think..)
How can you learn vocabulary without getting the spelling in the same process, for free?!!
English is not my native tongue. What do you think of my English?
Finally, a simple fact no "official" teacher will ever understand: spoken English is almost a totally separated language from written English. If you want to *speak* English, you will have to learn 2 languages! A smart teacher can make it one language and a half.
Vocabulary = language.
Vocabulary brings with it all other aspects to any language. Just make an effort for vocabulary, and get the rest for free!
|
|
|
|