Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
all groups > visual c > february 2006 > threads for february 15 - 21, 2006

Filter by week: 1 2 3 4

How to change sound card to a A/D card?
Posted by larry at 2/21/2006 11:27:45 AM
Hi, my friends, My boss asked me to use sound card to do analog to digital conversion for my application. I know when we record sound, sound card changes anolog signal to digital file. I have no idea where should I start? Do I need to write a driver for sound card? Is there any tool from Visua...more >>


pin_ptr vs malloc for unmanaged array
Posted by _DS at 2/21/2006 7:33:42 AM
My managed code needs to shuttle an unmanaged buffer between a couple unmanaged functions. I know this could be done via pin_ptr, and I understand the implications re managed heap fragmentation (I'll set it up at the start of the program and leave it). I believe that this could also be done...more >>

General object wrapper
Posted by Ole Nielsby at 2/21/2006 12:35:48 AM
I need to wrap managed objects in unmanaged objects in a general manner, i.e. I need a C++ COM style object that will wrap any managed object. I expected (optimistically) to be able to declare my class as something like: class GeneralObjectWrapper : public IUnknown { public: General...more >>

Explain the code
Posted by Tran Hong Quang at 2/20/2006 3:59:18 PM
Hi, I have a look on zlib source code and see declarations like this: void test_compress OF((Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen)); What is OF ? Thanks Tran Hong Quang...more >>

void vs. System::Void
Posted by ricecake NO[at]SPAM gehennom.net at 2/20/2006 8:08:14 AM
Is there a difference between using the C++ keyword "void" and using "System::Void" when specifying parameters and return types? Is there a preference when choosing between the two? In the code I'm working on, the original author uses both, and I don't understand if there is a specific reason ...more >>

Compiling a VC++ project using gcc
Posted by mail_amity at 2/20/2006 1:37:15 AM
I am trying to compile a project , created in VC++, using gcc to create a dll file. The modifications that I hav to make are the options/flags which I should supply during compilation. Currently , following options are supplied to VC compiler " -nologo -MTd -W2 -Gm -GX -Zi -Od -D "WIN3...more >>

Regular expressions
Posted by Boni at 2/19/2006 11:08:20 PM
Dear all, is it possible to use .NET or any other "build in" regular expressions libruary from native absolutely unmanaged C++ (no IJW no managed code). Thanks a lot, Boni ...more >>

Passing by ref?
Posted by asnowfall NO[at]SPAM gmail.com at 2/19/2006 10:19:04 PM
I am calling a function with a reference parameter. Inside the function (GetXMLRecord) I am changing the input parameter. When the function returns, input parameter is not reflecting the change. This would have worked in C++, but not here What I am doing wrong? Pls help. ref class Image...more >>



Help VC++.Net and GDI+
Posted by bpriya NO[at]SPAM gmail.com at 2/19/2006 1:56:49 PM
Can anyone please point to a website where I can find more information on how to use VC++.Net and GDI+. All the examples on CodeProject use GDI+ and VC++ 6.0 Thanks! ...more >>

How get program to follow path thru shortcuts?
Posted by noleander at 2/19/2006 9:58:27 AM
Hello. Ive got a VC++ program. Inside the program Ive got some code that has a full file path: C:\aa\bb\cc\dd\file.txt One of the folders in that path (cc) is a shortcut pointing to some other folder far away. The program doesnt seem to follow the shortcut. Im used to Unix, whe...more >>

question about Monitor in c++.net
Posted by www.brook NO[at]SPAM gmail.com at 2/19/2006 8:25:44 AM
I have a VC++.net code. Two threads are created, one thread keeps appending elements to the queue, another keeps deleting an element from the queue. I tried to use monitor, but it seems that the there is problem. in the thread of the deleting, seems that the deleting function entered twice an...more >>

C1902 Error
Posted by Bob Palank at 2/18/2006 7:27:40 PM
So what exactly does "Check your installation " mean ? Running VC++.Net Express 2005 under XP Home and get the error below. Any help is appreciated. Bob output follows =================== Compiling... ddch3pg49.cpp ..\ddch3pg49.cpp(4) : fatal error C1902: Program database manager misma...more >>

I.E 7 image problems...
Posted by MORE POWER at 2/18/2006 3:27:27 PM
I basically like I.E 7 but after being left unable to veiw images on one of my most visited favorites I have had to go back to I.E 6. Non of the images would open... Video clips would but not the images.... If this is not sorted I would not use I.E 7 as it is at the moment. I like the tabs but...more >>

Instantiating Managed structs and classes not as handles
Posted by Greg at 2/18/2006 2:20:27 PM
In the following example, where is "n" allocated (e.g. managed heap?) ? public ref class N { .... .... } main() { N^ n_handle; // allocated on managed heap N n; // Where is this allocated? Not on native stack, right? } -- Greg McPherran www.McPherran.com...more >>

It seems that if the .ncb file is missing it get regenerated.
Posted by academic at 2/18/2006 10:24:58 AM
Meant to post this here but put it into the c# NG by mistake. Been reading the doc about NCB store. I need to send a small solution to someone and notice my .ncb file is much larger than all the other files put together. I tried deleting it and then opening VS and it appears to work OK. I...more >>

VS 2005 C++ property
Posted by Greg at 2/18/2006 9:59:29 AM
For the following simple property: property int x; I understand that a hidden backing variable will be created (I like that). However, why is a simple property any different than a public data member? I could see the usefulness, if it were possible (for example) to have private set acce...more >>

c or cpp for extension
Posted by academic at 2/17/2006 2:40:22 PM
I am writing a program that is not OO. I tried using the c extension but that has too many restrictions (for me). So I changed the extension to cpp and wonder if the compiler is simply more allowable or am I getting some other overhead that I don't know about. Bottom line question, does u...more >>

What tpes to use for char array?
Posted by academic at 2/17/2006 2:35:00 PM
This is from something I wrote 15 years ago. Haven't use c since then Wanted to use it now so I cut and pasted into VS2005 on WinXP Now I can't seem to get the types OK GetModuleFileName requires LPWCH for szModulePath What are the compatible types?? Thanks char szModule...more >>

Start Without Debugging(CTRL F5) 3x slower than Start With Debugging(F5)!
Posted by lostnewmexico NO[at]SPAM yahoo.com at 2/17/2006 12:13:16 PM
This one has me at whit's end. In order for this to make sense, I will have to lay out the "facts" to get a hypothesis. There is no easy way to explain this. Environment: VC2005. MFC Application. Native only. I compile and link the App. If I hit CTRL-F5....results 700 ms. (does not...more >>

passing array of Char to Split method !!!
Posted by Herby at 2/17/2006 7:03:43 AM
I originally had: String^ line = gcnew String("abc, def; ghi" ); array<String^>^ mapEntries = line->Split(','); I now want to extend this to include the semi-colon - something like array<String^>^ mapEntries = line->Split( gcnew Char [] {',',';'}); i just cannot do it with...more >>

Question about managed / unmanaged instructions
Posted by nicolas.hilaire NO[at]SPAM motorola.com at 2/17/2006 3:02:05 AM
Hi all, i'm not totally clear with some concepts about managed and unmanaged code. I'm asking myself some questions : - i've a MFC app, i want to use the framework dotnet by switching to /clr compilation mode. Is my app in CLR, or only the call to the framework ? what is managed / unma...more >>

Converting .cpp to .exe
Posted by splinter at 2/17/2006 12:32:05 AM
Hi, my first post.. How do i convert the C program to a .exe file where like any othe programs, double click on a icon and the program is launch. I'm using MS Visual C++ .Net 2003. Thanks - splinte ----------------------------------------------------------------------- Posted via h...more >>

[C++/CLI] testing a gcrooted member for null
Posted by bonk at 2/17/2006 12:00:00 AM
I have a native class that has a managed private member: private: gcroot<MyManagedRefType^> m_managed; Now at some point in time this member will eventually get initialized: m_managed = gcnew MyManagedRefType(); How can test, wether this has already happend or not ? Without having...more >>

Error 2 error C2872: 'IDataObject'
Posted by Rick at 2/16/2006 5:29:34 PM
Error 2 error C2872: 'IDataObject' : ambiguous symbol C:\Archivos de programa\Microsoft Visual Studio 8\VC\PlatformSDK\include\objidl.h 7408 this is the error i got by mix managed and unmanaged code all i do to get this is this #include "frmUsrPass.h" //this is managed code, no problem #i...more >>

Passing a reference to a string from C# to C++
Posted by Bart Sipes at 2/16/2006 5:20:28 PM
I am currently trying to pass a string (two actually; sResponse and sErrMsg in the code) by reference from a C# windows application to a (managed) C++ dll and the main goal is to change the value of the string in the C++ code. I understand that C# by default passes by value so therefore you m...more >>

I've been looking for the c keyboard input and can't find it.
Posted by academic at 2/16/2006 3:03:20 PM
Hate to ask such a simple question but I've been looking through Help and can't find what I need. If I need to abort the app I print a message (fprintf) and return -1 Between those two I'd like to pause the app until user presses a key. I've been looking for the c keyboard input and can't...more >>

type cast converting chars to CSring
Posted by chasgl at 2/16/2006 1:55:29 PM
I have a older C++ project from a pre .net Visual studio. I just want it to run "the old way" in the new environment, not yet wanting to do any dotnet stuff. Several conversions that worked before are errors now The code CString strAsciiLocation = (GetColumn() + 'a' - 1); strAsciiLocatio...more >>

What type of project for a simple program to run in a DOS window
Posted by academic at 2/16/2006 12:38:15 PM
I want to compile a simple c program. Not c++ Not even Windows. Just a simple program to run in a DOS window. In vs2005 what type of project to I use. I can't get started. I tried a couple of types but the wizard always produces more then I need. Thanks What is the #include "stdaf...more >>

How to find the DLL dependency of an EXE file with VC codes?
Posted by Cachaca at 2/16/2006 12:01:29 PM
Hi. Do you guys know how can I find all the DLL file names being used by an EXE within a visual c++ program? I know there's a tool called Dependency Walker can do this but I need the source codes or knowing how to do it. I am using Visual C++ 6.0. Thanks very much!! ...more >>

basic CLR
Posted by Rick at 2/16/2006 11:05:41 AM
Hi guys!! im triying to open a new window using this myform^ formX = gcnew myform(); formX->show(); but compiler says Error 2 error C2065: 'myform' : undeclared identifier myform is a windows form i added after create the project, im using VS2005 vc++.net how can i fix it?? or how can ...more >>

Calling Unmanaged C++ functions from Visual Studio .NET C++ App
Posted by Mike Walsh at 2/16/2006 8:21:27 AM
Hi All, I have an unmanaged C++ DLL built in Visual Studio 4.2. This DLL exports a class, which I want to use in my VC++ .NET 2003 app. Everything works fine however some of the methods in the exported class take CString parameters. When I try using these I get a linker error as follows ...more >>

Declaring a constant in managed C++ for access from C#
Posted by GnG at 2/16/2006 3:49:18 AM
Hello all, Someone posted a similar question a while ago but there was no response. Does anyone know the answer? I have a managed C++ DLL which is used by a C# project. In that DLL, I have code like this: namespace Foo { public __value const int Bar = 123; }; It appears in the ob...more >>

My C++ vs. C# Conclusion
Posted by Greg at 2/15/2006 9:52:27 PM
After questioning, reading, and posting back and forth, I have finally determined that as far as desktop .NET development is concerned, C# is simply a subset of C++, period. There is nothing you can do in C# that you can't do in C++ but there are things you can do with C++ that you can't do wi...more >>

Help needed with using an IBM ODBC driver
Posted by tommydkat NO[at]SPAM gmail.com at 2/15/2006 10:56:02 AM
Hi! We've switched from Developer Studio 6.0 to Visual Studio .net 2003. Our application compiles fine with Visual Studio .net 2003 but when it runs, it uses the Microsoft ODBC driver as is shown in this function sequence error we're getting when we issue an UPDATE SQL query to our DB2 databas...more >>

pragma
Posted by Tran Hong Quang at 2/15/2006 10:21:30 AM
Hi, I am new to C++. Could someone explain the meaning of below code: # pragma warning(disable : 4786) # define for if(0){}else for Thanks Tran Hong Quang...more >>

Concurrent access of a COM+ ActiveX Server EXE method
Posted by vanisathish NO[at]SPAM gmail.com at 2/15/2006 8:26:25 AM
Hi, I have doubt in implementing COM+ ActiveX Server EXE written in VC++. These methods will be called from ASP pages. Now simultaneously when more than 5 users access the method, the response becomes slow because the access to methods are synchronised by locks inside. Actually these methods ar...more >>


DevelopmentNow Blog