Embedding a dialog from dll in main program's splitter View and doing data exchange in dll

ms windows

    Next

  • 1. a toolbar on the taskbar
    Hi all, Can anybody tell how to place your custom toolbar on the system taskbar, in the manner the Google deskbar does? The "Toolbars" menu seems to only allow folders, and Google do something at install so that the name of their toolbar is placed in the menue. Once the user chooses, their toolbar appears on the taskbar. Is it something that can be easily done (with Windows UI, MFC, WinAPI, or is this their proprietary technology? Thanks in advance, Arkadiy
  • 2. moving a file referenced by multiple projects within a .NET solution
    I have a Visual Studio .NET solution that contains about 100 C++ projects. Many of these projects reference myfile.cpp. Is there a simple way for me to move myfile.cpp to a new location without having to edit the location of that file within every project? If not, is there a way of setting up the solution in the beginning so that I would be able to do this? (Sort of like if all of the source files could be solution level and the projects could just point to those files- like a symbolic link.) My best idea right now is to write a script that will open every .vcproj and change the path in the appropriate places to the new path. This will work, but seems kind of dangerous, or at least inelegant. Thank you.
  • 3. Handling menu click
    Hi, I use CMenu class to invoke a context menu. Now when I select a menu item, I do not want to close it, but want to handle this click without closing the menu. How can I do it ? I tried catching the WM_COMMAND in WindowProc, but it comes in too late (after the menu is destroyed). WM_MENUSELECT also doesn't help in this case. Regards, Tushar
  • 4. Is there a demand for MFC programmers?
    I am debating whether or not to spend time learning MFC in depth. Several years ago, there were tons of ads for MFC programmers in my local newspaper. Now an ad shows up for an MFC programmer only once or twice per year. I don't know if demand has decreased because of the economy or if MFC has fallen out of vogue. Is it worth an investment in time to learn MFC, or would I be better off learning some other technology? I am not interested programming for business applications. I like programming science applications. Thanx for any advice. -Tony

Embedding a dialog from dll in main program's splitter View and doing data exchange in dll

Postby kumar_gaurava » Sat, 09 Oct 2004 00:38:24 GMT

Hi,

Am sorry if the subject looks too long. :-)

Here is my problem. I divide my SDI into 2 columns using dynamic
splitter. I associate the left column with some view. Now i want the
right column's view to show a dialog resource from one .dll. I could
get the dialog resource from the .dll and display it in the right view
by getting the resource ID from the dll ( after loading it ofcourse )
and then using the FindResource() and LoadResource(). But the problem
is that if i enter something in the dialog resource and then click
"Ok", then i expect my handler in the .dll to be called and then
retrieve all the configuration parameters that user enters in the
dialog resource.

But my handler is not getting called, and obviously because of that,
the dll cannot get the parameters entered into the dialog resource.

Is there any way to do this? So that the .dll can contain the dialog
resource, and i can embed it in my main exe after loading that dll.
And then once user clicks ok on the dialog, the appropriate handlers
and data exchange happens inside the .dll, and my main application
neednot care about the configuration parameters that the .dll wants...

Thanks & Regards,
Kumar

Re: Embedding a dialog from dll in main program's splitter View and doing data exchange in dll

Postby Daveh » Wed, 13 Oct 2004 22:29:09 GMT

Kumar,
try inserting a call to AFX_MANAGE_STATE(AfxGetStaticModuleState( )); in 
each entry point in the dll that uses resources in the dll.


Similar Threads:

1.Can a dll use a datasession in the main program

If I make a dll in foxpro and create an instance of it on a form of mine, 
can the datasession of the form be used in the dll.  I guess it would be 
something like I would have a dSession property for the dll and upon setting 
it, it would be SET DATASESSION to THIS.dSession.  Will this work, and give 
me the capability to view open tables and buffered changes that haven't been 
saved yet?

-- 
TIA

Altman
VFP9


2.Deploying cdo.dll, esconf.dll & cdoex.dll on W2K3 without Exchange

Hi,

I need the information if it's allowed to install this three dlls on a 
w2k3-machine without office and exchange installed. The server has only a 
clean w2k3 os installed. 

Are there special licenses going? What should I do to get this dlls legaly 
deployed?

Cheerio
Blei

3.regsvr32 regwizc.dll and regsvr32 licdll.dll isn't doing it

I've tried regsvr32 regwizc.dll and regsvr32 licdll.dll to get the activation 
warning 
 to go away but it just wont even though windows acknowledges that they were 
successful when I run them. What do I do now? I have one day left before I 
have to re-install yet again
MWE

4.What is counterpart dll methods in XP embedded for coredll.dll in

Hi everybody,
   What are the methods that is a counterpart of these methods in 
coredll.dll of Windows CE in Windows XP embedded?

Code:
[DllImport("coredll.dll", EntryPoint="RasDial", SetLastError=true)]
public static extern uint RasDial(int dialExtensions,string 
phoneBookPath,byte[] rasDialParam,  int NotifierType,int notifier,ref int 
pRasConn);

[DllImport("coredll.dll", EntryPoint="RasHangUp", SetLastError=true)]
public static extern uint RasHangUp(int Session);

[DllImport("coredll.dll", EntryPoint="RasSetEntryProperties", 
CharSet=CharSet.Unicode, SetLastError=true)]
public static extern uint RasSetEntryProperties(string lpszPhoneBook, string 
szEntry, byte[] lpEntry,uint dwEntrySize, byte[] lpb, uint dwSize);

[DllImport("coredll.dll", EntryPoint="RasGetEntryProperties", 
CharSet=CharSet.Unicode, SetLastError=true)]
public static extern uint RasGetEntryProperties(string lpszPhoneBook, string 
lpszEntry, byte[] lpEntry,ref uint lpdwEntrySize, byte[] lpb, ref uint 
lpdwSize);

[DllImport("coredll.dll", EntryPoint="WaveOutSetVolume", SetLastError=true)]
public static extern int WaveOutSetVolume(IntPtr uDeviceID, uint lpdwVolume);

Also, how would manipulate the audio (volume) and turning off the tablet pc? 
Wha are methods of which api? Is the name of api to manipulate these hardware 
devices "winxpapi.dll" ? Thanks

den2005

-- 
MCP Year 2005, Philippines

5.DLL (user32.dll,shell32.dll,ntdll.dll) relocation fix

6. search for : msgr2it.dll : msgrit32.dll : mssp3it.dll : mssp232.dll

7. Restore Kernel32.dll dnsapi.dll powrprof.dll and wininet.dll

8. are rapistub.dll, rapi.dll and the other rapi*.dll files req'd



Return to ms windows

 

Who is online

Users browsing this forum: No registered users and 53 guest