|
If they have the same namespace then there is a potential for collisions if namespace::class::method all have the same name. If this is a problem for you then you need to change some of the names.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
Does this[^] help?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <
>Nothing is free in the universe.<
|
|
|
|
|
|
What are the diffrent ways by which we can access a dll and lib in an .exe
|
|
|
|
|
can you explain what you mean ?
Watched code never compiles.
|
|
|
|
|
I am going to use some thirdparty dlls and lib files in my applications exe. What are the possible ways by which we can access those dll or lib in my exe. Can we simply use LoadLibrary or #import or any other way. Which will be the ethical way to achieve this
|
|
|
|
|
You can link the libraries to your executable code or use LoadLibrary to access them dynamically. There is no 'best' method, just do it the way that is most convenient for you.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
|
Is there any way to use SHGetFolderPath() to get the path to the C:\Documents and Settings folder? With Vista and newer, I can use SHGetKnownFolderPath(FOLDERID_UserProfiles, ...) to get the path to the C:\Users folder, but I need an XP solution.
Thanks.
- DC
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I can think of a way to achieve it using SHGetFolderPath() . If I pass the corresponding value of CSIDL[^] to get the public desktop, the API should return something like C:\Documents and Settings\All Users\Desktop , which I can strip down to C:\Documents and Settings .
It was ever thus, the Neophiles will always rush out and get 'The Latest Thing' at a high price and with all the inherent faults - Dalek Dave.
|
|
|
|
|
I thought of that, but was not sure that "All Users\Desktop" would always exist (e.g., spelling, locale). Maybe I can key off of the backslash instead.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
You could also use SHGetSpecialFolderPath() and pass CSIDL_APPDATA to it. This would give you something like "D:\Documents And Settings\Administrator\Application Data" . The AppData folder always exists as far as I know.
Go and never darken my towels again - Groucho Marx
|
|
|
|
|
Even if it were to be the desktop folder, like David said, we could simply count the backslashes in the string and have it 'trimmed' if required.
How's life otherwise?
It was ever thus, the Neophiles will always rush out and get 'The Latest Thing' at a high price and with all the inherent faults - Dalek Dave.
|
|
|
|
|
I just suggested "AppData" because of David's concern whether "All Users\Desktop" always exists. Ans yes, from there it's quite simple to parse the string and extract what he needs.
Rajesh R Subramanian wrote: How's life otherwise?
Life's good. Very busy and really looking forward to the short Christmas break.
Go and never darken my towels again - Groucho Marx
|
|
|
|
|
Hi All,
I am having a FormView and i have shown the form View in Menu Click Event. Previously there was a Model Dialog for that Event. The same event is modified to CFormView.
My Doubt is.
Code
----
CMyDialog dlg;
if( dlg.DoModel()== IDOK)
{
//Some Conditions ......
}
The Code will wait untill the CDialog Box is been Closed.
The Same behaviour must be applied to CFormView.
What is the Process to do.
Regards,
Uday.
|
|
|
|
|
If you want it to be modal why not simply disable other windows and run a message pump?
Steve
|
|
|
|
|
Hi Steve,
Thank you very much for giving Idea.
Regards,
Uday.
|
|
|
|
|
Hi,
I have a question in windows base development,
I am using VS C++ is it possible to create a packet cannon that use multiple proxy servers to send the packet.
In multi i mean that the packet go from one proxy to another one and so on till the target location.
I can use one proxy server for each package that i send, but is it possible to use more then one for the same package?
Example scenario:
command:
packet_canon.exe -p plist.txt -h 3 -t [site name]/example_script.php
sending package to '[site name]/example_script.php'...
packet go into proxy server USA...
From there to Proxy server in UK...
From there to Proxy server in Japan...
From there to the target site...
the -p - is for a proxy list file
the -h - is for how many proxy to pass
the -t - is the target location (php script).
Thanks a lot for any help and your time,
Ram.
|
|
|
|
|
It might depend on the type of proxy used.
I suspect it's possible using SOCKS, but I don't quite see a way to do this via HTTP
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
Hi Peter,
I will give it (SOCKS) a look....
Thanks for the reply.
Ram.
|
|
|
|
|
hi evry body
im want a program in subject:
source code car firetruck in c
please help me
thank you
|
|
|
|
|
What ?
What the hell are you talking about ?
Furthermore, nobody is going to do the work for you and provide the full source code. You have to do the work on your own and ask specific questions when you are stuck.
|
|
|
|
|
Arefeh Haghpnah wrote: source code car firetruck in c
You should choose the joke icon, though.
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]
|
|
|
|
|
Arefeh Haghpnah wrote: source code car firetruck in c
Here it is:
http://www.firetrucksourcecode.info[^]
Important before you compile the code:
#ifdef Emergency
#define WaterPressure 1
#else
#define Siren 0
#endif
Go and never darken my towels again - Groucho Marx
|
|
|
|
|
You seem to be confused, firetrucks don't have a source code but a chassis.
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|