Answer Questions
mqsash Activex control newbie question
Is there a difference between OCX files (Activex Control) to a DLL component that is created using ATL Which method is better Also, can I package DLL into cab files to embed in HTML Or can I only do this with OCX files Brian Kramer wrote: That's true. Filenames for COM objects are looked up the registry using its progid or guid, so it doesn't matter what the extension is. There is a his ...Show All
brgmgb Getting MS-Access Tables Information
Hai, Iam developing VC application which Selects any .MDB Database(MS-Access). The requirement is..My Application should popup the list of Tables which contains primaryKey. Can you pls tell me how to the retreive each table information in Access. (From MS-SQL i acheived this..using SQLGetPrimaryKeys()).....! But this API is not Supporting For Access... VamsiDhar.MBC SoftwareEngineer Hi, check this in MDSN: http://msdn.microsoft.com ...Show All
oconnoradrian warning C4013
Hello, I'm using Visual C++ 2003 Standard for ansi C coding. I keep getting warning like this with common functions: warning C4013: 'malloc' undefined; assuming extern returning int warning C4013: '_getch' undefined; assuming extern returning int warning C4013: 'strcpy' undefined; assuming extern returning int warning C4013: 'free' undefined; assuming extern returning int How to solve it Thank you in advance. Thank you, it works. ...Show All
ArielDeil Converting 'ATL::CString' to 'const char *'
I am trying to write a DLL that post debuging information to another process. A similar DLL has been written that works in Visual Studio 2003. I am using Visual Studio 2005 and the following code, exactly as is in the VS2003 version, void CMyTrace::Trace(const char* file, const char * function, unsigned int line, const char * format,...) { char buffer[1024]; HWND hwDispatch = FindWindow(NULL,L"Tracer"); va_list marker; va_sta ...Show All
timesscar CreateEvent Method
Hello Everyone, If I want to CreateEvent under .NET......how should I do that... In WIn 32 I can do something along these lines... events[READ_EVENT] = CreateEvent(NULL, false , false , NULL); Any suggestions how can I do this in .NET..... Check out MSDN. AutoResetEvent Kuphryn Thanks, Anyone with an example.... ...Show All
StevenBr Help with Extern Linkage
Hi Everyone, I am new to visual c/c++ and i am using visual studio. I am working on a project that compiles with C. Now, i have to use some header files which have structures, templates, etc which are written in C++. I have no idea how to link these two languages together. The command that i give to run the compiler for my project (Ethereal) is "nmake -f makefile.nmake" and it compiles the file i have for C, but gives errors since the ...Show All
BSergio why can't i declare Enumeration as value type in vc++2005
I tried to declare an enumeration as value type, but i got 2 compiler errors. the code is as below: #include "stdafx.h" using namespace System; value enum WeekDay{ Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday } the value keyword is not highlighted. i think the following line should work in vc++2003: __value enum WeekDay{} why can't enum be declared with value keywork in vc++2005 it works without the ...Show All
RalphTrent LPCTSTR
Hello all, I've got another question. I'm using a bit of code written by Nishant Sivakumar ( http://www.codeproject.com/tips/CSMTPConnection2.asp ) to send an email programmatically. The code is relatively straightforward and there are no problems during compile EXCEPT... Error 3 error C2664: 'ATL::CMimeHeader::SetSender' : cannot convert parameter 1 from 'const char [19]' to 'LPCTSTR' SetSender is a member of CSMTPConn ...Show All
pkotak Will porting a project from Visual C++ 6.0 to Visual C++ 2003 improve look of GUI?
We are about to embark on upgrading from 6.0 to 2003 (and possibly 2005 to follow shortly afterwards). We are fairly sure this will give us some nasty headaches through compiler changes, but what we'd like to know is will we get a more XP-like look to our UI through compiling it with the newer libraries - The project uses MFC. You can even have XP look and feel without using VS 2003. You just need a manifest ...Show All
ajay.andrews Negtive zero valid?
Hello, I hope I am in correct forum. I am testing Visual Studio 8 RC1, and found a negative zero. Here is a C example: { double val = 0.0; val = -val; printf("%g\n", val); } Output is: -0 The result is "0" with .net 2003 version. Is this a expected behavior If this is expected, could somebody point me to the documents describing new double behaviors. Thanks! ...Show All
Trevor Watson Mixing C and C++ MFC
Hello everyone! I am working on this project where I have to implement a decoder/video player. I have a decoder project written in raw C. It takes an encoded file as input and generates a decoded file. I have another project, a video player, which is an MFC implemented in C++. What I have to do is incorporate these two projects together. I have to decode a single frame and play it on the spot. Anyways, this introduction is just to get you guys i ...Show All
YunXu com+ 1.0 support
Hi, I'm updating a bunch of our c++ code to use the 8.0 compiler and have run into an issue. One of our projects uses com+ 1.0 and references the mtxguid.lib library. I see that this file existed with the vc98 and vc7 compilers but not the vc8. Is there another library we are to use or should we just link back to one of the old ones thanks Hi Chris: this library does indeed appear to have gone from Visua ...Show All
Kakta finding the datatype of user input
does anyone know of a way to check the datatype of a users input to see whether it is an integer or not smtraber Shell lightweight api (if it is not renamed) 32-bit int: StrToIntEx() http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/reference/shlwapi/string/strtointex.asp 64-bit int: StrToInt64Ex() http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/reference/shlwa ...Show All
hvymtl unable to add any item to the toolbox
The environment: VS2005 (final version). Win2K. I just started working with this new VS2005 in bits and pieces. Today I realized that the toolbox was empty and it does not allow anything to be added to it. According to HELP, The Choose Toolbox Items dialog box displays tabbed panes listing components that are recognized on your local computer. You can use the Choose Toolbox Items dialog box to select or remove components, and to add items ...Show All
Ajeet Kumar Gupt Calling a c# code from an ATL dll visual c++ project compiled with /CLR
Hi, the file that contains DllMain can't be compiled with /Clr, so I have another file called extra.cpp which is compiled with /clr which calls the c# code. I am trying to call the code in extra.cpp from DllMain, , but still I get the error that I am trying to call a managed code from a native code, even though extra.cpp is compiled /Clr. can you help Because the managed CRT is not i ...Show All
