|
Hi
ALL
I want to read string table values from resource in one DLL file and want to import these values in another application by adding dll in another project. I used following code as
CString MyClass:: GetVal()
{
CString msg;
msg.LoadString(IDS_STRING);
return msg;
}
this values is not return in .exe apllication when i call it.
So plz send me solution this problem.
Atool
|
|
|
|
|
M. Atul wrote: msg.LoadString(IDS_STRING);
instead use API
<br />
LoadString( HINSTANCE hInstance,<br />
UINT uID,<br />
LPTSTR lpBuffer,<br />
int nBufferMax<br />
);
nave
|
|
|
|
|
i am using Geric class so there is no HINSTANCE values so what value should i pass in LoadString functions.
Thanks
Atool
|
|
|
|
|
u can use the GetModuleHandle to get the instance of the dll.
nave
|
|
|
|
|
M. Atul wrote: from resource in one DLL
Use ::LoadLibrary to load this dll first then use LoadString .
|
|
|
|
|
Hi,
I have used a good article named "Code to refresh desktop programmatically"
By habasoft from code project. But sometimes icons in my quick launch menu r changing, I am getting outlook's icon for show desktop & some other in the same menu.
Can anybody help me?
Thanks!
Santosh
|
|
|
|
|
Use SHChangeNotify()
Come online at:-
jubinc@skype
|
|
|
|
|
Hi,
I am doing windows application in c#.
I want to place a linkbutton in one of the column in Datagrid.
And then after that I have get the Item details when I click on linkbutton in datagrid.
My database in MsAccess only.
Srinivas
From Hyderabad.
|
|
|
|
|
wrote: I am doing windows application in c#.
vey good question to ask in a vc++ forum.
nave
|
|
|
|
|
nameless shack wrote: I am doing windows application in c#.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Who's asking?
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
hi all:
I create a modeless Dialog1 in Dialog2, and then create a modeless Dialog2 in Dialog3, the problem is Dialog1 can not receive any message, could you tell me what is the problem and how to solve it.
thank you very much !
|
|
|
|
|
What do you mean by 'recieve message' ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
sorry , it is receive message
|
|
|
|
|
How did u know it is not getting any message?
Come online at:-
jubinc@skype
|
|
|
|
|
because i override PreTranslateMessage function, and set a break point in it ,run the applicatioin, it can not stop on the break point
|
|
|
|
|
do you have a msn id ? if you has, could you add my msn id to your friend list?
my msn id is : kiluar@hotmail.com
it will be very pleasure to be your friend!
|
|
|
|
|
Dear All,
I have a list of VC++ projects. I need to compile those files in a command line.
I want to do that cmd line exe.
How ca n do this ?
Kindly help me in this.
|
|
|
|
|
you need to make a make file and then open a Build Environment window and use nmake makefile .
If you think you can than you can, if you think you can't you are right.
|
|
|
|
|
use CL.exe for compiling the files from command line.
u can also msdev.exe from command line to build the whole project.
nave
|
|
|
|
|
I want to do this by coding..
Can anybody help me...
|
|
|
|
|
what do u mean???
what u want is to compile a file from another exe, u can use ShellExecute() or CreateProcess()function to run the cl.exe from the code.
nave
|
|
|
|
|
|
Hi, all,
just got 2 questions about the use of method SetWindowOrg:
void CCoordinateTestView::OnDraw(CDC* pDC)<br />
{<br />
pDC->SetMapMode (MM_TEXT);<br />
pDC->SetWindowOrg (100,100); <br />
pDC->Rectangle(CRect(100, 100, 300, 300));<br />
}
1.
I find that
pDC->SetWindowOrg (100,100);
actually has the same effect with
pDC->SetViewportOrg(-100,-100);
So either of them can take place of the other. They're essentially equivalent. Is that right?
2.
The literal meaning of SetWindowOrg, as I guess, is to set maybe the left-top position when a window (like in SingleDoc) is created. That is, every time I instantiate a window, it's position should be fixed. But the fact is not so. Then why is it named Set "Window" Org? What does this "Window" refer to?
Maybe my questions look a litte strange.
Thanks a lot for any comments!
-- modified at 1:21 Wednesday 24th January, 2007
Jeffrey
|
|
|
|
|
1) Yes. Generally you use one or the other.
2) This blurb from the SDK may help...
"This function (along with SetViewportExtEx and SetWindowExtEx) helps define the mapping from the
logical coordinate space (also known as a window) to the device coordinate space (the viewport)."
Check out coordinate spaces and transforms in the SDK
|
|
|
|