|
Any help on this please
I Need to resolve this issue very urgently
|
|
|
|
|
varchar(50) is a database type, not a C++ type. What's the type of the data called "Value" that your code is using?
--Mike--
Looks like I picked the wrong week to stop sniffing glue.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
its std::string
i also tried with std::wstring
|
|
|
|
|
Then why are you trying to convert to _bstr_t and back, when a simple assignment to your string variable will do?
--Mike--
Looks like I picked the wrong week to stop sniffing glue.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I have a tab control and with a set of CDialogImpls (WS_CHILD) for each page (swap them in and out depending on what page is selected). With XP themes turned on, the background of these panes needs to be the same color as the tab control (which is different than the standard dialog background). The problem is that my little panes are drawing with the standard dialog background instead of the tab control background. It looks really ugly. I haven't had this issue with MFC apps, only WTL. I've tried a numerous set of flags on the dialog (including transparent) to no avail. Does anyone know of the correct way to set these dialog so that they work?
|
|
|
|
|
i have created an ATL Dll "Simple_ATL.dll" having one function "AddNumbers(long Num1, long Num2, long *ReturnVal)",how can i use this function in asp,so that i can send the parameters from asp page?Can any one help me Please?
Thanks in advance
|
|
|
|
|
Something like this:
Dim obj, i<br />
Set obj = Server.CreateObject("Simple_ATL.NumberAdder")<br />
i = obj.AddNumbers(2,3)
|
|
|
|
|
Did he say his interface is using automation ?
|
|
|
|
|
Hi All,
I've downloaded WTL7.0 and compiled and ran the BmpView example. I am experiencing performance problems running/debugging the application.
When I run the app., there is delay before I even see the GUI. Then the program's response is very slow. I performed a release build with Visual Studio.NET, I am running on Win2k Pro.,512RAM,850Mhz.
Maybe I have something setup wrong, new to WTL, any suggestions ?
Thanks in advance.
Update: Just tested on WinXP and runs great, my Win2k might be messed up, not sure
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Is there any WTL way to do this?
|
|
|
|
|
Use the DECLARE_WND_CLASS() family of macros in your CWindowImpl -derived class.
--Mike--
Looks like I picked the wrong week to stop sniffing glue.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I don't quite understand how to use it. I'm coverting my project from Win32 to WTL and in plain Win32 I used a wclass value which i used in the CreateWindow function. How does this work in WTL? I can't find it in my 'documentation' neither.
Thnx
|
|
|
|
|
Oh, you're asking about the class name at the time you create the window. You don't put the class name there, because CWindow takes care of it.
class CMyWnd : public CWindowImpl<CMyWnd>
{
public:
DECLARE_WND_CLASS("MY_CLASS_NAME");
...
}; Then when you make a CMyWnd object and call its create, ATL handles the class name for you.
--Mike--
Looks like I picked the wrong week to stop sniffing glue.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
How I make to develop an ATL control using MFC Print Preview callingr from Visual Basic or Visual C++ 5.0/6.0 Main program.
If it's possible, the ATL control may be an ocx thax i can use from these ambients and I have only 2 Events
OnPrinting <-- This is generate at the state change
OnPrintData <-- this is generate whe the controls may print data
I would also these procedure
SettingPage (One or several function)
PreviewOrPrint
DoPreview
DoPrint
Anyone can help me??
|
|
|
|
|
I want to make a multithreaded program by using
AfxBeginThread(...). I am not getting any relevent information about it. Since I don't want to use any other method or function for threading because it is considered to the most simple one for the beginners.
Please provive me with relevent sites/simple codes using this function as on every site I am finding different methods of handling threads and am confused.
Reply me soon
|
|
|
|
|
|
Hi Thomas. In your particular case, you don't need to delete each pair, nor even delete both members: std::string s take care of cleaning up their own resources, so you only have to cope with the second member of each pair:
template <typename T>
struct delete_second
{
operator()(T& t)const
{
delete t.second;
}
};
...
for_each(mymap.begin(),mymap.end(),delete_second<map <string, Type* >::value_type >());
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
|
Hi,
I am trying to use the static library which is having 4 to 5 functions.In
project settings-link tab i gave the library name and i included the header
files also.In spite of that it is giving this linker error.
What to do next.pl help
IPAddr.obj : error LNK2001: unresolved external symbol "struct value_pair *
__cdecl get_data(char * *,int)" (?get_data@@YAPAUvalue_pair@@PAPADH@Z)
|
|
|
|
|
It might be that the static library was built with the C runtime as a DLL while your main program was built with the C runtime statically linked.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Hi,
since I'm not vey dedicated to GUI programming and it is in some cases necessary, I was seeking the way to make GUI in my applications faster, which I was writting directly through API, but not to use any RAD tool.
I started to learn MFC which is very (not to say hard ) opaque to me, maybe because I used to do programming in API directly or something else.
Friend of mine, suggested me to use WTL to make GUI faster, which is (in his opinion, I don have one yet ) much better in any aspect regarding MFC.
So, I've downloaded WTL 7.0 from MS site, but not to count add-in wizard in VC I don't know where to start from, for learning to do programming using this library. I've found one .chm file on this subject but it was corrupted, and nothing else.
So my question is, can anyone help to get start, firstly by informing me where can I find some good free documentation on this subject and a good tutorial to understand better WTL and to begin my programming very soon independantly.
Thanks.
|
|
|
|
|
|
Hi,
if made a MFC acticeX control and anything works fine. if got a event called myData that returns a string, no Prob (VC++ 6 wiz does the most stuff by click, nice)
but now, i need a event then will return a alt-class called clsData.
can someone help me out?
thanx a lot and please have partience, i'm new a programming vc++
yours thorsten
|
|
|
|
|
I want to access the data files in the same dir as DLL,so I need the pat name of the DLL. I use following:
GetModuleFileName(m_hInst,pszDLLpath_buffer,_MAX_DIR);
and it seems not work.
|
|
|
|
|
place the DLL in Winnt/system32 and use this path
|
|
|
|