Extension Dll with Dialog and VB
I have a gread problem, I created a extension dll, put a simple dialog in it
and want to call the dialog from Visual Basic 6. But the dialog is created
and then the whole stuff crashes. Why? What's my misttake?
Some code snippets:
long DoDialog(HWND hwnd)
AfxSetResourceHandle(hinst); // hinst is the HINSTANCE from
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
in the def file:
; Explicit exports can go here
and in VB:
Public Declare Function DoDialog Lib "...DLL lobrary wont load.
Hope someone can help. I run Money 2002 on a HP desktop PC that uses Windows
XPHE with Service Pack 2. Recently I reinstalled Windows and now Money wont
open. I get a message saying the Registration Library (DLL) hasn't loaded.
Other software seems unaffected. Tried reinstalling Money but still the same
message. Any advice would be appreciated.
...Invalid dynamic link call to a .DLL file?
When I open a Word, Excell or any file from an e-mail
attachment I get this message:
Your program is making an invalid dynamic link call to
a .DLL file.
Why does it do this!
...What is the file called which holds outlook express email?
I'm trying to migrate my old Win98/Outlook express email
system to WinXP/Outlook. I don't know what the file is
called which stores all the email I have saved over the
last few years...
>I'm trying to migrate my old Win98/Outlook express email
>system to WinXP/Outlook. I don't know what the file is
>called which stores all the email I have saved over the
>last few years...
It will either be a xxx.pst or a xxx.ost. Do a search on
your hard drive for *.pst and it will show you where your
file is located.
Still working on localisation, I'm trying to work out how MFC's localised
modules (MFC80FRA.DLL etc) are loaded. Stepping through the MFC980.DLL
initialisation, I get the gist of how this is done based on the locale of
But what is the point of the (American) English module MFC80ENU.DLL ?
Doesn't one get English from MFC80.DLL itself?
Author MOZART the music processor for Windows -
For discussion/support see
I've never had to put together the list of ...Static Dll vs Shared Dll
In the past I have always used Static link in the belief that whenever I
created an exe I did not have to check that the user had anything installed
on their computer, (any special dll that are on my machine but might not be
on anybody else).
It made the exe itself a lot bigger but it never really was a problem as my
data files takes 99.9% of the size anyway.
But now I created a new project, (for something totally different), and I
get link errors when building statically, (but not when I link shared).
I have 2 projects, one lib and the other is an exe, as usual I selected "Us...Release build exe has MFC71D.dll, MSVCR71D.dll and MSVCP71d.dll dependency
I have a MFC aplication created using VC++.NET 2003. When I compile in
Release mode and check the exe dependency in dependency walker it shows
the exe has dependency on MFC71D.dll, MSVCR71D.dll and MSVCP71d.dll.
I have disabled all the debug info in the release configuration
settings. Any help would be appreciated.
...Add timer to a dll
I have a regular MFC dll. I want to add a time to the application class. Is
it possible and how?
You can't. But see my essay on adding a WM_TIMER event to a document. What you have to
do is create an invisible top-level window and send it messages.
On Wed, 10 Oct 2007 15:06:19 +0200, "Galia" <email@example.com> wrote:
>I have a regular MFC dll. I want to add a time to the application class. Is
>it possible and how?
Joseph M. Newcomer [MVP]
MVP...Need help: Client found response content type of '', but expected 'text/xml' after simple SDK call.
I am exploring the CRM SDK (1.2) (on MS CRM v1.2) and tried a very basic
operation, which I copied from Microsoft's samples.
The following piece of code throws an exception:
string server = "server2";
string virtualdir = "mscrmservices";
string url = "http://"+server+"/"+virtualdir+"/";
Microsoft.Crm.Platform.Proxy.BizUser bizUser = new
bizUser.Credentials = System.Net.CredentialCache.DefaultCredentials;
bizUser.Url = url + "BizUser.srf";
Microsoft.Crm.Platform.Proxy.CUserAuth userAuth ...integrate phone call activities to outlook
Those cusotmers that rely on Outlook for managing their CRM activities (which
is the direction Microsoft is going, which is great) do not use phone call
activities in CRM because these do not integrate into outlook tasks and they
do not get reminders on those.
It would be great to have a configuration option to enable CRM Phone Call
Activity to Outlook task integration (a future phone call is a task after
all) in addition to Task to Task integration.
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. ...dll cross-compatability
We will be starting a new project shortly, and as hard as I've tried to talk
them out of it, they are using C# as the language. We have decided to do
code blocks as dlls, for example, we may have a series of custom controls in
I need to know if I write those custom controls in VC++ and create a dll,
will the dll be usable from an application that was written in C# ?
How can this be achieved (if possible) ?
(a) C# can call DLLs. In principle there should be no problem.
In fact, you end up with some issues dealing with data structures, and th...Phone call resolution
Is there a way to modify the Status picklist when you go to Actions, Close
Phone call in a phone call activity?
...CButton with Icon in DLL Problem
I have some code that I used in VC++ 6.0 for an app. Now I have a VS.NET
2003 and things aren't all working for one of my DLLs.
I have a CDialogBar derived class with buttons on it. This class, and icons,
are stored in a DLL. With VC++ 6, I used this code to put the icons on the
dialog bar, but that doesn't seem to work now. Can anybody help me out?
HINSTANCE hInstResource =
HICON icon = ::LoadIcon(hInstResource, MAKEINTRESOURCE(IDI_GRAPHIC_BIN));
I have a DLL created using MFC and an application that uses it. I'm trying
to debug the DLL by running the application in debug mode, and setting
breakpoints in the DLL code, but it says "XXXX does not contain any
debugging information ... " when it definitely does! Any suggestions?
Use your DLL's project settings and set the "Executable for debug session"
to your application path. Then start the debug process. You can breakpoint
anywhere inside your DLL (as long as you're in debug build).
If you want to step into EXE's sources you should build it in ...OMINT.DLL
I upgraded ME system to Win2K and ended up with OL Express
and Outlook not working. One says there is a problem with
OMINT.DLL (which Microsoft website refers to a
corrupt/missing OUTLIB.DLL) and the other refers to a
problem with MSIMN.EXE. I have been unable to find a fix
for either. Does anyone have a clue as to what I need to
do? I tried to reload Office 2K and get an error message
referring to inaccurate TRANSFORMS.
Thanks in advance.
...How to trap PreTranslateMessage in Win32 (non-MFC) app?
How do you trap PreTranslateMessage in a Win32 (non-MFC) app? I have an
existing MFC class called CCustomEditCtrl that I have to convert to pure
Win32. I am doing some processing in it's PreTranslateMessage event. Can
someone tell me where to put this code in the Win32 version? Do I hvae to
trap some WM_ event ? Thanks.
You would just handle the messages in the control window function. If you
want to do something before all other messages, take care of it towards the
top of the window function. In pseudo-code:
// You can, for example, add your proces...OnClose() is not called!
I have a Dialog-based application and when I press the escape key OnClose()
is not calledQ But when I click on the close button it works. What message
is fired when I close the dialog with escape?
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
In a dialog box, the escape key generates the WM_KEYDOWN with a WPARAM of
0x1b (ASCII code for ESC key). Somewhere in the internals of windows
message processing (most likely IsDialogMessage handler) the ESC key is
changed into a WM_COMMAND message from control with DLG ID of 2 (same as
The MFC...Is there a way to "mangle" names of exported classes in a DLL
I have a DLL with some exported classes. When I view the DLL in a tool like
Depends.exe, all the class names and member names are displayed in plain
text. This poses a security risk because some of my classes are named
CEncryptor, CSerialNumberChecker etc.
Is there a way to mangle the names in such a way that my application can
still use the DLL with actual class names, but other utilities (depends
etc.) cannot view them?
If you are really concerned about this, provide some unrelated names to
your classes. Why worry about mangling it later? Another option is to
use GetProcAdd...Calling Custom POS button
I am having troubles trying to make a call from the custom POS buttons. I think i just have the command syntax wrong in the button setup since the dll works fine when i run it from a hook.
In the store operations manager custom pos buttons section i have set the style to COM Object (session object) and have the command as "C:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\VbTest\bin\VbTest.dll.Class1" (which is where the VbTest.dll is located and the class with the process method is called Class1).
When i click the button in POS i recieve the Attempt to ex...MFC dll versions
I am wondering if there is a command line or other quick way to figure
out on a target system which MFC dlls they might have installed, and
what version. Can I count on the SYSTEM32 folder always being the
location? Specifically, I am interested in these four files:
Thanks for any insight.
> I am wondering if there is a command line or other quick way to figure
> out on a target system which MFC dlls they might have installed, and
> what version. Can I count on the SYSTEM32 folder always being the
...Cannot find DLL when starting debugging
Sorry for asking this here, but vstudio.general seems to be rather sleepy...
Anyway: I have an MFC app which utilizes a 3rd party DLL which is located in
its own place on the harddrive. I've tried to put the path to the directory
where the DLL can be found in the list under 'Tools', 'Options', 'VC++
Directories', 'Executable Files', but it still can't seem to find the DLL
when I try to debug my app. I know I could just copy the DLL to my Debug
directory, but ahh that's really clumsy. Isn't there an other way ?
"Bendik E...Owner draw CListCtrl, EnsureVisible, PreTranslateMessage
There is Owner draw CListCtrl with overriden DrawItem. This class has
subitems arbitrary controls (CEdit, CButton...). It should be fine to detect
arrows keys in controls to jump with caret in CEdit boxes in one column by
pressed arrow key. I tried to catch it in CEdit -> PreTranslateMessage() in
block if(pMsg->wParam == VK_UP)
then to call EnsureVisible() to parent CListCtrl to be caret always visible
and CListCtrl scrolls if needed. Problem is when first time it scrolls up,
some infinite loop begins and CPU 100% . It seems that something wrong with
this... Can be EnsureVisible(...pretranslatemessage behaviour
I have a problem when I press CTRL+ALT+D keys the PreTranslateMessage
function is not fired for WM_KEYDOWN, only for WM_KEYUP.
Hey Luis, check out this article and see it if helps (talks about disabling
that key combination by setting up a hotkey so you get the message instead
of the OS)
"Luis Porras" <firstname.lastname@example.org> wrote in message
> I have a problem when I press CTRL+ALT+D keys the PreTranslateM...Subclassing betwen MFC Application and an Win32 DLL
I'm new to MFC programming.
1)How to post messages b\w MFC application and Win32 DLL. When i try
PostMessage(hWndParent,WM_SAMPLEMESSAGE,0,0) to MFC even that is not
2)I need to know how subclassing can be done between an Win32 DLL and
an MFC Application.
My Situation is
#define WM_APPMESSAGE WM_APP+10
In DLL_PROCESS_ATTACH i will do subclassing and modify the
WM_APPMESSAGE Message posted by an thread and will give it to the main
Application for further processing. This case works perfectly with an
win32 application. When i try to do the same t...MFC Satellite DLLs mfc80xxx.dll for Greek language
We have some applications that were built with Visual Studio 8.0 and use MFC
as static DLLs. I want to adapt the user interface to Greek language. For
English, French, Chinese and so on we have the correspondent Satellite DLLs
corresponding to MFC80U.dll etc. to accomplish that. But for the Greek
language I have not yet found a correspondent Satellite DLL.
1 – Are there already satellite DLLs for the adaptation of MFC to a Greek
2 – If not, are there templates or similar tools that allow me to create the
necessary DLLs with low effort
3 – Are th...