|
smdhd wrote: Its really urgent.
Its always.. writing urgentz in posts generally doesn't help getting answers.
Now regarding your problem..
Can you please tell us so far what have you done ?? and where are you stuck??
Regards,
Sandip.
|
|
|
|
|
smdhd wrote: Can anyone help on this please?
Help you with what?
smdhd wrote: Its really urgent.
Really? It is? If it so urgent why did you not post what you need help with? At this point you should seriously consider a different line of work.
led mike
|
|
|
|
|
|
I think you've to write the server code and the client one. BTW the clients and the server are supposed to communicate, possible via some kind of IPC.
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]
|
|
|
|
|
Hey Friends
Any idea how they would have created yahoo messenger (not complete but only layout) for vista?
A Dialog Box with some images on that?
or something else?
Regards
|
|
|
|
|
I thought I heard it uses WPF[^].
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
yeah that's amazing stuff & brilliant work by yahoo
with these kind of utilities i hope users will really feel that they are using vista
and i am going to look for some tutorial / small programs for wpf
can't wait to try it
|
|
|
|
|
Nice site, thanks for link
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I have a shell extension loaded in explorer and it locks the dll, but when the user reinstalls my program I want the shell extension to be replaced. Is there any workaround to that problem? I'm asking because I noticed that WinRar does it. When you uninstall, the shell extension RarExt.dll is renamed to RarExt.dll.0.tmp, and also the shell extension stops showing in the context menu. When you reinstall the shell extension is back. There's no need for restarting.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Ive been stuck on this problem for ages and it wasnt much help before so will try again being the n00b I am lol
i have
TCHAR szBuf[100];
INT i,j,k;
i=1;
j=2;
k=5;
_stprintf(szBuf, "%d %d %d", i, j, k);
SetWindowText(hWnd, szBuf);
it cant find _stprintf, keeps saying undefined no matter what header file i include, can someone please help me sort this out, its driving me insane
|
|
|
|
|
Have you included TCHAR.H ?
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Interesting that the compiler knows what a TCHAR is but doesn't
recognize that function if you haven't #included tchar.h
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
i did include TCHAR.h etc but it still omplained about the _stprintf which is what i dont get, it was saying it was undeclared yet the file was included and the include file didnt cause any errors
|
|
|
|
|
What Visual Studio version are you using?
On VS2008, this compiles for me (aside from the warning
for using an unsafe CRT function)...
#include <tchar.h>
void SomeFunc()
{
TCHAR szBuf[100];
int i,j,k;
i=1;
j=2;
k=5;
_stprintf(szBuf, _T("%d %d %d"), i, j, k);
}
Mark Salsbery
Microsoft MVP - Visual C++
modified on Monday, October 13, 2008 12:08 AM
|
|
|
|
|
Mark Salsbery wrote: On VS2008, this compiles for me (aside from the warning
for using an unsafe CRT function)...
Same here with VS2005. I added the code to an existing dialog-based project and it compiled fine. No additional header files were added.
"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
|
|
|
|
|
Thanks for the heads-up - I forgot to change the <>
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Are you including stdio.h ?
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]
|
|
|
|
|
i did include that but it came up with similar error, cant remember if it was a crt error though should those just be ignored,
anyway im using visual studio 2005
|
|
|
|
|
You need both TCHAR.h and stdio.h . Try to include these files and if you get any error post the complete error message here.
Nevermind, I was wrong about (as Mark [^] pointed out).
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]
modified on Monday, October 13, 2008 1:51 AM
|
|
|
|
|
CPallini wrote: You need both TCHAR.h and stdio.h
Nah Maybe in VC6...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: Nah
You're right.
Mark Salsbery wrote: Maybe in VC6...
Nope. Also VC6 compiles fine with TCHAR.h alone.
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 all,
I want to create a file in vista(UAC Enabled) using CreateFile() API. But the problem is its not creating the file. Using GetLastError() is returning 5. How can i create the file in vista(UAC Enabled).
Thanks in advance..
|
|
|
|
|
You are probably trying to create the file in the same folder as your application (which is in Program Files). Under Vista, this requires admin privilege.
Instead you should store your data in the appdata folder. Take a look at SHGetFolderPath[^] using the CSIDL of CSIDL_APPDATA or CSIDL_LOCAL_APPDATA.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
If you take a look at the System Error Codes, error code 5 is ERROR_ACCESS_DENIED , which means what it says on the tin.
If you are writing to a restricted directory, you will need to elevate your process prior to writing to it.
Regards,
--Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
|
|
|
|