|
hi..
i have get code for dll..i want to whether it is in UNICODE OR MBCS..how do we know it..?..if it is in unicode i want to set the settings to MBCS..how to do it...?..pls help me..
thanks in before
james
-- modified at 4:11 Tuesday 29th August, 2006
|
|
|
|
|
please check the project settings.
Regards
Velayudhan
|
|
|
|
|
yeah i have checked project setting..i want to know..what all flags has to be set..for MBCS and UNICODE...
|
|
|
|
|
In project setting, take option C/C++
In the category combo box, take the option General
In that, there will be a heading : Preprocessor Definitions
In the text box shown below this option, u can give _UNICODE or UNICODE for unicode settings
and _MBCS for MBCS.
Regards
Velayudhan
|
|
|
|
|
Hello everybody,
i have posted this theme some weeks ago.
But after some long searching and testing: the problems remain.
I can query computers running W2K by NetFileEnum successfully.
But the same code on any computer with XP or the new server 2003 only gives error-message "access denied" (code ERROR_ACCESS_DENIED).
I've seen the remark in the Microsft-docs that i must be administrator to execute this function. But making the current user a admin (on both XP and 2003Server) doesnt change anything.
Any help would be welcome.
Thanks,
Richard
|
|
|
|
|
Richard Ernstberger wrote: But making the current user a admin (on both XP and 2003Server) doesnt change anything.
Have you tried AdjustTokenPrivileges() ?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Many thanks, this was the key.
I have to set the SE_CHANGE_NOTIFY_NAME - privilege. I used the AdjustTokenPrivileges() - function sometimes ago to get shutdown-privileges for a process, which are not normally set.
But when i start a process, normally the process gets the rights and permissions of the user that started it. And documentation to MSVC says that the SE_CHANGE_NOTIFY_NAME - privilege ist on by default for every user. So i'm quite surprised that i have to set it manually for my process.
However, it works now.
Thanks again,
Richard
|
|
|
|
|
Hi all,
Can anyone tell me what the function: BroadcastSystemMessage() is used for??
I know what it does... but MSDN didn't answer my question..
Thanx in advance
Regards
Programm3r
|
|
|
|
|
|
Programm3r wrote: Can anyone tell me what the function: BroadcastSystemMessage() is used for??
It's used to send (i.e., broadcast) a message to multiple recipients (e.g., all applications). It could be used to poll recipients for permission to carry out a given action. It can be used to, in conjunction with other code, terminate another proccess.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
how can i use tab control in SDI Application to a form view.
in my application i split the window into 3 horizontal views.
in the 3 rd view i want to add tabbed control for showing two views in the 3rd view....
how can i do it?
|
|
|
|
|
Why not just derive the 3rd view from CFormView , and insert a tab control on it?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi guys,
Can anybody help me out in integrating VC++ DLL with Java. I do have only .h,.dll,.lib files for the DLL program and don't have .cpp file. Can i load that dll in Java. If anybody have idea please mail me back.
P S V Subba Reddy
|
|
|
|
|
See Here.
Refers to call methods in a dll from JAVA
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi,
I am trying to write to a .wav file.I want to get the block size of the header of the wav file and over write at that location of the file.Can anyone tell me how to go about in doing this.It's very urgent.
Thanks,
Riz
|
|
|
|
|
See here[^] maybe it is some helpful to you
-- modified at 4:00 Tuesday 29th August, 2006
|
|
|
|
|
WhiteSky wrote: here[^] and here[^]
same links ?
|
|
|
|
|
oh I'm sorry ,
Thank you toxcct,I modified my post
|
|
|
|
|
Thanks for ur help..... But i am using C programming in the VC++ environment.I want to know how can i use it in C language.So if u have any links regarding this then plz let me know.
|
|
|
|
|
But why using C instead VC++
|
|
|
|
|
What exactly are you trying to do? Open a file? Write to a file? Find a .wav file's header? Be a tad more specific.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi all,
i have a problem, i have created an EditControl dyanmically, when ever a mouse click there at that point an edit control will be created.
But my problem is that if i choose a menu and tell
LeftAlign, RightAlign, Center Align. then this dyanmically created Edit box must align accordingly,
i know the Api called ::MoveWindow() will solve all this but please give any suggestions to move accrodingly.
Uday kiran
|
|
|
|
|
uday kiran janaswamy wrote: Edit box must align accordingly
When you are creating the edit box you would be getting the HANDLE of the edit box.
You can use MoveWindow using that Handle.
BOOL MoveWindow( HWND hWnd,
int X,
int Y,
int nWidth,
int nHeight,
BOOL bRepaint
);
Specify the new coordinates along with the new height and width you want to let the control acquire. Use true/false if you want to repaint/No repaint the edit window.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
hi anshuman,
but how to get the Handle of the Newly created EditBoxes.
i mean
CEdit *ptredit = new CEdit;
ptredit->Create(...) //dynamically created editboxes.
but my problem is that when i click then a new edit box will be created at that point.
but how to iterate all the created editbox dynamically and move that editbox window handle in to new position.
please provide me your help for this solution.
Uday kiran
|
|
|
|
|
<br />
::MoveWindow(ptredit->m_hWnd,...)<br />
ptredit->MoveWindow(...) or ptredit->SetWindowPos(...)<br />
whats problem?
|
|
|
|