 |
|
 |
Well i need to know how to use an existing dll, ex:
In Borland c++ to run my application i need to use the bolndmm.dll
and files.bpl(package library), i can send my app only with de executable ?
without this files ?
#DEFINE _C_PROGRAMMER_
|
|
|
|
 |
|
 |
Hi ,
my problem is when write the code on c++ and start to run it the program run correctly but the window (console) close quickly
ex) if my program contain cout << "hellow" ;
in the last sentnce
the the window show it but it close it quickly
i wonder where is the problem ( from IDE or WIN XP)
by the way i use vc++.net to run my code
|
|
|
|
 |
|
 |
Hi !
I use VC++7.1 run on Windows XP OS (Version English).
In Dialog, I use Rich Edit 2.0 can display chiness String, but I can not get the Chiness String in Rich Edit 2.0 (OR EditBox) by GetWindowText() Funtion.
How to do it?
JinLu
|
|
|
|
 |
|
 |
Hi, Im migrating a code from VC++ 6.0 to VC 7.0 (.NET). and im getting a lot of linking errors that look like this:
error LNK2001: unresolved external symbol "__declspec(dllimport) int __cdecl SymixDBBeginTrans(class ATL::CStringT > >)" (__imp_?SymixDBBeginTrans@@YAHV?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)
or these
error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl SymixDBBeginTrans(class ATL::CStringT > >)" (__imp_?SymixDBBeginTrans@@YAHV?$CStringT@DV?$StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) referenced in function "public: int __thiscall CFSFilter::SaveToDisk(int)" (?SaveToDisk@CFSFilter@@QAEHH@Z)
Can someone help me please, im in a rush for this, so i will really apreciate it
Thanks
Diego
Diego
|
|
|
|
 |
|
 |
Hi I wanna know if someone can tell me how u can link a ini file using VC++ to acces a remote database...
|
|
|
|
 |
|
 |
Hello,
I am trying to use MSAA to capture dialog boxes(like alert, confirmation, prompt, Basic user authentication, etc) displayed by IE. I have been able to capture these dialogs and get the user actions on them. I am also able to replay events on these dialogs.
I am using get_accName() api to get the name of hwnd of the control and using name to find the dialog that i want.
For e.g
if((strcmp(buffer,"Enter Network Password")==0)
{
//Found Authentication dialog
}
When i tested this on XP i found that the name (for Basic authentication dialog) changed to "Connect to xxx" xxx being the domain name for the requested page. Now i have modified the comparision to include "Connect" so that i can find the dialog.
1) If the local changes does the name of the dialog changes or does it remain the same.
2)If there is anyway to find a particular dialog. I checked the class for alert, prompt etc and all of them are of type Dialog class.
PS. I tried to get the child count for these dialogs by using the api get_accChildCount() and all of them have count of 7. I really dont know why. My guess is that the controls are hidden for some dialogs, i maybe wrong here.
Any help is appreciated.
Thanks in advance.
Prasad.
|
|
|
|
 |
|
 |
Hi, I need your help!!
I have the problems about the SAFEARRAY** when trying to use an ActiveX DLL in VC.NET. It’s an array as Integer. And I tried to use the dll in VC6 but I failed. It didn’t recognize the var type.
The code of the DLL in VB6 is like this:
Public Function fun(A() As Integer) As Boolean
fun = True
End Function
The definition of the function in VC class head file is like this:
BOOL fun(SAFEARRAY * * A)
{
BOOL result;
static BYTE parms[] = VTS_UNKNOWN ;
InvokeHelper(0x60030000, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, A);
return result;
}
I know the VTS_UNKNOWN is exactly wrong, but I have no idea what it should be. I shall ask you for help. Can you tell me your approaches please? Thank you!
blueeyesblue
|
|
|
|
 |
|
 |
Implement a program which can perform the following actions:
Prompt the user for input file name, read the file and determine the number of alphanumeric characters, the number of words, the number of sentences in the file. To determine the number of sentences the number of periods (dots) should be counted (newlines and tabs should be disregarded). Allow the user to press any keys to return back to the main menu.
Prompt the user for the input and output file names, append the contents of one file to another. Allow the user to press any keys to return back to the main menu.
Prompt the user for input file name, word the user want to replace, and the substitute word. Open the file and replace all the occurrence of the user specified word by another word in the entire file. After all, tell the user how many replaces have been taken place. Allow the user to press any keys to return back to the main menu.
Exit the program.
the c plus plus program. how to write.
Implement a program which can perform the following actions:
Prompt the user for input file name, read the file and determine the number of alphanumeric characters, the number of words, the number of sentences in the file. To determine the number of sentences the number of periods (dots) should be counted (newlines and tabs should be disregarded). Allow the user to press any keys to return back to the main menu.
Prompt the user for the input and output file names, append the contents of on
|
|
|
|
 |
|
 |
I am finding a solution for this problem, your is very very good.
email:zhangzq71@hotmail.com
|
|
|
|
 |
|
 |
From my point of view, the function GetProcAddress takes as the second argument an ANSI string, so the macro _T gives an error message in my environment with _UNICODE defined.
Great work, just what I was seaching for!
|
|
|
|
 |
 | thanks  |  | Kammerer Volker | 3:16 10 Jan '03 |
|
 |
really great article..... !!!!
|
|
|
|
 |
|
 |
Great Article.
Also, in case anyone is interested, you can now obtain a QFE (HotFix) for this by contacting Microsoft Support Services and requesting it. The KB article id is Q325014.
It works when using MFC in a shared library.
|
|
|
|
 |
|
 |
Just a word of warning, the QFE has restrictions on what you can redistribute, e.g. you are NOT allowed to just redistribute the MFC70, instead you have to redistribute a msi package. This may not be a problem for developers developing internal company applications but is a huge headache for developers writing applications for general public use. Dave.
|
|
|
|
 |
|
 |
I don't know if I am doing anything wrong, but for some reason using delay load with the MFC libs shared still requires this dll. I get this warning when linking this way:
"LINK : warning LNK4199: /DELAYLOAD:oleacc.dll ignored; no imports found from oleacc.dll"
It works fine when I use MFC statically though. Any ideas?
When I use MFC libs statically in Release I don't seem to get all proper error messages so I am trying to avoid doing that. For example, if a file on my recent file list has been deleted and I try to open it using the recent file list, the message box saying the file contains an invalid path appears blank. Same thing seems to happen with print preview and no printer setup. This doesn't happen in debug or when MFC libs are shared. Anybody know why?
|
|
|
|
 |
|
 |
Hi Try this!.. Select projet's properties | Linker | Input, click on the button on the Delay load DLL click on the [...] button to open the dialog for Delay Loaded DLLs property, and that's where you see the "Inherit from parent or project defaults" checkbox. After unchecking, you'll see that the property is $(NOINHERIT) and that fixes the problem. Sebastin
|
|
|
|
 |
|
 |
The delay load feature of VC is supposed to help you with this. Build the application and to teh linker settings add /delayload:oleacc.dll This will load the dll only when the function is called. So you will not have any problems. You can even write custom error handling.
..this is a VB Programmers' world and we all are just visitors - Someone in a MSJ article
|
|
|
|
 |
|
 |
Yes, this's a better and simpler solution. I've test and it works fine. Thanks a lot!
|
|
|
|
 |
|
 |
Great thanks both Chen and Rama.
I discovered this problem during deployment of an enterprise GUI application built in Borland C++Builder that rides on top of an inproc COM dll I wrote using VC++/ATL/MFC v.6.0 -> v.7.0. It was a somewhat clasically uncomfortable surprise to be in this situation after successfully testing the app "everywhere" ! I used Chen's solution for my project first and I am very glad I did - for the sake of understanding and control-freakiness
|
|
|
|
 |
|
 |
It works fine for Use MFC in a Shared DLL.
When I'm using MFC in a Static Library I get
oleacc.lib(OLEACC.dll) : error LNK2001: unresolved external symbol ___delayLoadHelper2@8
|
|
|
|
 |
|
 |
You should add "delayimp.lib" to your project.
|
|
|
|
 |
|
|
 |