|
i'm a little confused,
I made the vb DLL in vb6.0, I can do everything in the 6.0 version,
but now I just need to know how I can add the damn DLL to my VC++.NET application.
Ehsan Behboudi
|
|
|
|
|
ahaa Visual Basic,, hmm in that case i can't help sorry never did that, search articles maybe u can find something there.
i guess u have to import them uding .DEF files not shure
~dzenan~
|
|
|
|
|
Hi, I use resource DLLs to provide multilingual environment to users - user select language, I call AfxSetResourceHandle() with handle of relevant DLL and in all functions that load some kind of resource, I use AfxGetResourceHandle().
It works great (I have six resource DLLs now + base project, which is in english).
Of course I use same resource symbols in resource.h, with the same values.
But sometimes happens that I'm not able to load certain string from string table of one of DLLs. It has the same value assigned in resource.h as in all others DLLs but it just doesn't work. The only thing that helps that I must add new string to all DLLs and change the code to use this symbol instead of the old one.
I really don't understand what the problem is
What could be the reason?
Have you ever met some similar problem?
|
|
|
|
|
To prevent the whole world being rebuilt whenever a resource file changes, Visual C++ ignores changes to the resource.h header file.
You may find that a Rebuild All corrects this problem.
|
|
|
|
|
Rebuilding all didn't help..
|
|
|
|
|
Are all your resource files using the same resource.h file for their resource numbers, or are you adding new resources individually to each one?
I'm not sure how well Visual C++ copes with multiple resource files - it seems to think that a resource header will only be associated with a single resource file, which I noticed when trying to rename a resource file...
It might be better to define your resource numbers in your own header file; in the IDE, select View > Resource Includes, then add your own resource number file as a #include in the Read-only symbol directives box.
You'll have to declare the IDs manually rather than using the resource editor. You can use the resource editor once you've declared them.
|
|
|
|
|
All DLLs have their own resource.h file (but with the same content). So when I need add new resource, I just add the resource in MSVC++ Resource Editor and it does everything for me.
It's just confusing for me that all six DLLs are working well exceptiong the only one...
|
|
|
|
|
Hi guys,
I am doing a MDI application in VC6.0. A thread is created everytime a child window is created. The child window should display the user selected parameters. The problem I am facing is once a new child window is created, the parameters which are updated in the new window are also updated in all the previous windows. I am having seperate structure for mainting the data for each thread. But the child windows are getting updated with the latest data structure. How to bind the data structure to it's corresponding thread for that child.
Any body got some clue, pl suggest.
Thanks
Satya
|
|
|
|
|
When you create the thread it should be passed the HWND for the matching MDI child and update only that window.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
hello,
I have a problem ... I want to create a CDialog ... and add to it a toobar
i have tried
m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
m_wndToolBar.LoadToolBar(IDR_MAINFRAME);
where m_wndToolBar is a member of my CDialog class and IDR_MAINFRAME is the resource ID for my toolbar and... this code is in OnInitDialog event ...
the functions return OK but the toolbar isn't there ....
please help ..... thanks !!!!!!
|
|
|
|
|
m_toolBar.CreateEx(this, TBSTYLE_FLAT | TBSTYLE_TRANSPARENT , WS_CHILD |WS_VISIBLE | CBRS_FLOATING );<br />
m_toolBar.LoadToolBar(IDR_TOOLBAR);<br />
m_toolBar.SetBarStyle(CBRS_ALIGN_TOP | CBRS_TOOLTIPS | CBRS_FLYBY);<br />
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0);<br />
|
|
|
|
|
|
Go to Administrative Tools > Services, double-click your service in the list, and fill in the Start Parameters box.
Your ServiceMain function gets called with these parameters when the service is started.
I assume OnStart is a framework-defined method (i.e. by ATL or whatever).
|
|
|
|
|
Mike Dimmick wrote:
Go to Administrative Tools > Services, double-click your service in the list, and fill in the Start Parameters box.
Your ServiceMain function gets called with these parameters when the service is started.
I assume OnStart is a framework-defined method (i.e. by ATL or whatever).
I tried that before, if you reboot the machine the arguments will be lost (it seems to be one time only).
Click here to see my articles and software tools
|
|
|
|
|
In that case, you'll have to save them somewhere on a successful start if you want them to be permanent.
The convention is to store them in the registry under HKLM\SYSTEM\CurrentControlSet\Services\<service-name>\Parameters .
|
|
|
|
|
I have a MDI application. How do i know when the user change/switch the document (not view). The reason is, I would like to update a modless dialog displaying specific info for each document.
Thanks..
|
|
|
|
|
Use a GetActiveDocument() method
Best regards,
Eugene Pustovoyt
|
|
|
|
|
|
I have CWnd and his parent CDialog.
CWnd hides a part of CDialog and a controls included in him.
How can I know what a control under CWnd specifies the mouse pointer?
Best regards,
Eugene Pustovoyt
|
|
|
|
|
WindowFromPoint() or ChildWindowFromPoint() will return the window that contains the mouse cursor. They are slightly different, so look at the docs to see which one you need. Sorry, your specification is a little vague for me to work this out
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
These methods search the child windows, and CWnd is child too, therefore in such a way to find an child element under child will fail.
Similar, that the unique way is to look all child windows, excluding CWnd , for search of a window hided under CWnd
Best regards,
Eugene Pustovoyt
|
|
|
|
|
WindowFromPoint() will find any visible window (child or not) that has the specified point in it. The only restrictions are that the window must be visible and enabled, and it will not return static text windows (it returns the parent of the static text window).
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
CWnd is a child window of the CDialog and the controls are the child window of the CDialog too. But CWnd hides some controls. Therefore control becomes invisible under CWnd and for WindowFromPoint()
Best regards,
Eugene Pustovoyt
|
|
|
|
|
OK. Well in that case use EnumChildWindows() , GetClientRect() and CRect::PtInRect() and check them all manually.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ok. Thank you
Best regards,
Eugene Pustovoyt
|
|
|
|