|
Is there anybody to tell me why my app wich load its resources from a resource only dll fails on WIN2000 OS. If I put back the resource in the .rc file of the app, it works !!!!!!!!!!!
elisabeth.sever@europlacer.fr
|
|
|
|
|
Hi
Can you recommend me bug tracking system which have interface as plug-in
with Visual C++ IDE,
and have report tools.
Ernst
|
|
|
|
|
I created the toolbar use CWindowImpl::Create method, and
I used SendMessage function(Message ID is TB_ADDBUTTONS) to
add buttons into the toolbar. But I just can add 5 buttons
from the sixth, the button can not show up or a access violation occurs, could some body tell me why?
^_^
|
|
|
|
|
I use SetCharFormat function in my project and I use SetWindowText to output my text. When I run my programm on systems Windows 95/98 this function can print symbols with code upper then 127, but when I run it on system Windows 2000, it does not work. Can anybody help?
|
|
|
|
|
Can this control use .gif files ?
|
|
|
|
|
From the doc.
An animation control is a rectangular window that displays a clip in AVI (Audio Video Interleaved) format— the standard Windows video/audio format. An AVI clip is a series of bitmap frames, like a movie.
Animation controls can play only simple AVI clips. Specifically, the clips to be played by an animation control must meet the following requirements:
There must be exactly one video stream and it must have at least one frame.
There can be at most two streams in the file (typically the other stream, if present, is an audio stream, although the animation control ignores audio information).
The clip must either be uncompressed or compressed with RLE8 compression.
No palette changes are allowed in the video stream.
You can add the AVI clip to your application as an AVI resource, or it can accompany your application as a separate AVI file.
So GIF won't work
|
|
|
|
|
What you want can be found here:
http://www.codeguru.com/bitmap/PictureEx.html
|
|
|
|
|
I would like to parse a XML file from a TCP/IP socket source without saving the stream to text file before parsing the file. I'm quite familiar parsing a standard XML text file with the microsoft xml parser, but I do not know how to parse a socket xml stream. Of course I would like to use the ms parser for this purpose, too, if possible.
Thanx in advance !
Marc
|
|
|
|
|
use DOMDocument::loadXML instead of load
|
|
|
|
|
The SAX/SAX2 interface is best for parsing sequential XML streams. MSXML has an SAX2 interface, I think you could use that but COM gives me a headache. I'd use expat or Xerces instead.
|
|
|
|
|
How can I know what enter for HINSTANCE ?
|
|
|
|
|
Is SetBitmap a method of some class? There are SetBitmaps functions in CButton, CStatic, etc. but they do not use HINSTANCE parameters.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
May be somebody know how to create VB Collection object through VC++.
When I use #import derective to import data from msvbvm60.dll and write _CollectionPtr ptr( __uuidof(Collection) ) - it's return error code: Object not registered.
Please help me .
ICQ:36898098
|
|
|
|
|
I am looking for a german version of comdlg32.dll which contain the standard dialog boxes. It is in the winnt\system32 directory.
Is there anybody who can tell me which dll or other system file contains the calendar ? I use a calendar control in my app and i want to change the language of the monthes names.
elisabeth.sever@europlacer.fr
|
|
|
|
|
Calendar should be in comctl32.dll. However, I don't think you'll be able to use german version of common controls/dialogs on english NT and vice versa.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Only put the dll in the same folder or something like it.
Because it is problem to register the dll on client computer by installation packet .
|
|
|
|
|
If it's guarenteed the dll is in a known directory ( either absolute or relative to your program ) then you can run regsrv32 from your program using shellexecute, or provide a batch file that does it and put it in runonce with your install program, and require a reboot.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Thats easy: you can register your com-dll by using
this source code inside your client, maye inside your
InitInstance. For this reason you have to copy the dll
into the same dir as the .exe file.
by the way: regsvr32.exe will do nothing else !
BOOL CMyApp::RegisterVtrLibrary()
{
HINSTANCE ComLib;
FARPROC lpfnDLLProc;
BOOL bRet = FALSE;
VTRLib = LoadLibrary("MyComDLL.dll");
if (VTRLib)
{
lpfnDLLProc = GetProcAddress (ComLib, "DllRegisterServer");
(*lpfnDLLProc) (); //DllRegisterServer();
FreeLibrary(ComLib);
bRet=TRUE;
}
return bRet;
}
|
|
|
|
|
in that way I got errors on the line :
VTRLib = LoadLibrary("Debug\\UdiDNM.dll");
as below:
---------------------------------------------------
Compiling...
MyAtl.cpp
MyAtl.cpp(106) : error C2065: 'VTRLib' : undeclared identifier
MyAtl.cpp(106) : error C2440: '=' : cannot convert from 'struct HINSTANCE__ *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Error executing cl.exe.
MyAtl.dll - 2 error(s), 0 warning(s)
|
|
|
|
|
Well, I forgot to change the name of this variable. SORRY
BOOL CMyApp::RegisterComLibrary()
{
HINSTANCE ComLib;
FARPROC lpfnDLLProc;
BOOL bRet = FALSE;
ComLib = LoadLibrary("MyComDLL.dll");
if (VTRLib)
{
lpfnDLLProc = GetProcAddress (ComLib, "DllRegisterServer");
(*lpfnDLLProc) (); //DllRegisterServer();
FreeLibrary(ComLib);
bRet=TRUE;
}
return bRet;
}
|
|
|
|
|
Is that code give the option that the dll will not must register in registry ?
What the means "DllRegisterServer" ?
Thank you very much !!!
|
|
|
|
|
Yes, this is the code for that purpose.
"DllRegisterServer" is a function/method exported in every COM-Dll.
You will need this call to register the DLL into the registry.
If you do not exactly know, what I mean, just send me the name of
the DLL an the name of the client project, or even the dll an the project
itself, an I will generate a prodecure for you, if you like.
Marc
Marc.Holenz@mascott.de
|
|
|
|
|
I have to come up with a topic for my C++ final and was woondering if anyone had any suggestions for some topics?
|
|
|
|
|
mostly people do something networking-related
like proxy servers and stuff like that
you can add NAT features
and SSL tunneling etc...
Nish
|
|
|
|
|
I want to implement a data import form like Access.
How to do it.
Please help me.
thanks.
|
|
|
|