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 > july 2003

Filter by week: 1 2 3 4 5

CPU Restriction
Posted by Ashish at 7/31/2003 11:25:13 PM
Hi Friends, Is there any way I can restrict a thread to be processed by only (one / ) certain number of CPUs in a multi CPU machine in .net framework ? I found the equivalent functions in win32 api (SetThreadIdealProcessor and GetSystemInfo). Problem is I want to use threads from within .NET fra...more >>


Possible to call old DLL with CString argument?
Posted by bo bjerkeholt at 7/31/2003 1:56:51 PM
Just check that I got this right. I have an old DLL made in VC6 (no sources). Some of the methods have a CString as argument. No problem when using this from my VC6 application. I migrated my VC6 application --> VC7 (VS 2003) and then I get an error at link time saying something like error...more >>

How to develop an add-in for internet explorer?
Posted by Tommy Shore at 7/31/2003 11:49:14 AM
Give me some advice plz, thanks. ...more >>

Casting different base-type managed buffers
Posted by newsivan NO[at]SPAM correu.vilaweb.com at 7/31/2003 9:31:25 AM
Hello I am migrating a VC6 C++ library to VC7 Managed C++. I need to iterate along a buffer of unsigned shorts, char-by-char: unsigned short lpData __gc[]; unsigned char __gc * itr = NULL; lpData = new unsigned short __gc [1000]; itr = __try_cast< unsigned char __gc *>( &lpData[0]...more >>

Bug in VC++ .NET 2003, stringstream and tellp
Posted by Edward Diener at 7/31/2003 8:10:05 AM
If you run this simple console program after building it on VC++ .NET 2003, you will see the error message, "Error getting initial stream position", from the attempt to use the std::ostream::tellp() method to get the output stream position of a std::stringstream. I can see no reason for this erro...more >>

How to call BOOL Beep( dwFreq, dwDuration ) from managed C++ ?
Posted by senimu at 7/30/2003 5:20:46 PM
Hi there, I'm trying to call very simple API function from managed C++ code BOOL Beep( DWORD dwFreq, DWORD dwDuration ); Something like this: namespace DocImage { public __gc class cBeep { public: static bool myBeep(unsigned long iFreq, unsigned long iDur) ...more >>

MFC dialog class
Posted by meipv at 7/30/2003 3:06:58 PM
I have five dialog classes in one project. Is it possible for the data from I store in variable m_object from one class to be passed to another dialog class. The basic set-up of my project. When the user in dialog class ONE clicks OK, it goes to dialog TWO. I have a getfunciton that retriev...more >>

Catching the absence of a DLL
Posted by Steve Terepin at 7/29/2003 10:20:58 AM
I've got a Managed C++ wrapper class that calls some functions that talk to a hardware data acquisition card, via a LIB supplied by the vendor. The calls ultimately go through to a DLL, which is installed in the System directory. Now, everything works fine on the machine that actually has the ha...more >>



sse
Posted by bill at 7/29/2003 5:30:15 AM
I am working on a project with alot of array manipulations (sin,cos,mult). Does anyone know of a package utilizing simd (sse or mmx) to increase the processing capability. ? (particularly for the sin/cos) Gotta go fast! Thanks, Bill ...more >>

How to: embeded VC++ for Xscale processor
Posted by Jano at 7/28/2003 2:59:11 PM
Hi all, I'm pretty new to the embeded VC++, I have version 3 and was able to develop an ARM version of my little app. However I need one for the new Dell pocket PC with the Xscale processor. How do I do that ? Do I need to get a different SDK ? If so from where can I get it ? I coul...more >>

LNK1181
Posted by Michael at 7/28/2003 2:17:37 PM
I am trying to write a simple C testcase for a C DLL using Visual C++ 6.0. The link step fails with LINK : fatal error LNK1181: cannot open input file "c:\my.obj" I do not have any files my.* on my disk or in my project. If I look under the link tab of my project settings, I can se...more >>

pointer to pointer to a managed class
Posted by Itay_k at 7/28/2003 1:35:13 PM
Hello, I want a member in my class that will save pointer to pointer to System::Drawing::Image class. When I write on my class code: System::Drawing::Image **bmp; I get this error message: error C3160: 'bmp' : cannot declare interior __gc pointer or reference as a member of 'RCClientNS:...more >>

Simple MAPI
Posted by Larry Eaton at 7/28/2003 10:40:18 AM
According to MSDN there is MAPI example code in a file SIMPLE.CLI I cannot locate this file. Can anyone direct me to the location of this? It doesn't appear to be anywhere in ftp://ftp.microsoft.com/developr/mapi/samples...more >>

Porting Linux C application to .Net
Posted by Sunanda at 7/28/2003 9:55:58 AM
Hi, I am a newbie to .Net. I have an application in running in linux, a set of .c and .h files. I also have a makefile in linux to create the executable. I want to port this to windows (.Net environment). I want my application to be portable so that I can develop in .Net environme...more >>

simulating mouse input
Posted by perlen at 7/28/2003 8:34:07 AM
I'm trying to write a program that simulates mouse input. I want to be able to send mouseclick- and mousemove - messages to other applications. I tried it using the Journalplayback-Hook, but it didn't work properly because it hung itself up. the other thing why that doesnt work for mi is be...more >>

Converting a managed string to const WCHAR*
Posted by Kieran Benton at 7/27/2003 1:21:30 PM
Hi, Sorry to post this, I feel like a right fool but Im under serious time pressure! Afraid I'm a newbie to managed C++ (Ive had to resort to it as Im wrapping some COM objects for C# use). Any ideas how to get this working? void Configure(int port,String* filename,int maxclients) { /...more >>

Parameters visible in C# as 'ref' args ?
Posted by Steve Terepin at 7/26/2003 11:53:22 AM
I've been trying to make a Managed C++ method that appears with the = following signature in C# : void Func ( ref bool cancelRequest )=20 .... but if I declare it in C++ as simply=20 void Func ( bool & cancelRequest ) .... it appears in the C# world as ( bool * ). I've tried ador...more >>

DOS Application
Posted by Mike Mayer at 7/26/2003 3:01:01 AM
I've made an little mathe program, i want that the program make z.B: x ^ 1/2 (x high 1/2) how could i say that to the compiler ? please send an answer !!! ...more >>

C4346: dependant name is not a type.
Posted by bvm at 7/25/2003 6:12:59 PM
Not sure of the best way to go about this but I have a question to ask/bug to report. #include <list> using namespace std; template< class __type > class Brian { list< __type > *vert; list< __type >::iterator end; }; Fails to compile with the offending line being list< __type >::...more >>

Passing Arrays from VB to C++DLL
Posted by Kurt Richardson at 7/25/2003 3:56:54 PM
Hi all Sorry to bother you with what is probably a really trivial question for you C++ experts. My programming skill are pretty amateur, but I'm pretty good at VB.NET. However, I'm wanting to realise some of the speed benefits of writing some of my routines in C++ and accessing them f...more >>

Debugging stack overflows..
Posted by Søren Johansen at 7/25/2003 2:45:03 PM
Hi, I am getting a stack overflow exception. I was wondering how to to debug this situation with vc. I know that the problem is not based on (unintended or intended) recursion and the call stack at the time of the exception is rather small. Thus, there must be some variable declared on the st...more >>

Do we have to keep the object alive while doing pinvoke?
Posted by cppdev9 NO[at]SPAM yahoo.com at 7/25/2003 11:56:07 AM
Hello, After reading a few articles, http://blogs.gotdotnet.com/cbrumme/PermaLink.aspx/e55664b4-6471-48b9-b360-f0fa27ab6cc0 http://blogs.gotdotnet.com/anathan/commentview.aspx/8ec0b7b2-6290-4500-a8c7-1b6c677214cb i have the following question: __gc class C { C(){ ptr = new Unmanaged(); ...more >>

ATL Service Web Serice Using XML as Input and Output
Posted by FS Liu at 7/25/2003 11:11:19 AM
Hi, I am writing ATL Service application (XML Web service) in VS.NET C++. Are there any sample programs that accept XML as input and XML as output in the web service? Thank you very much. FS Liu ...more >>

__gc Array Aggregate Initialization Does Not Work As Advertized -- Why?
Posted by Robert A Riedel at 7/25/2003 10:53:43 AM
This is a repost of a question that received no answer. In a module = DATA.CPP, when attempting to initialize a __gc array as follows: // // Begin sample ... // // // Yes, I include all of the correct assemblies, including MSCORLIB.DLL = and all of // the other .NET related paraphernal...more >>

recvfrom buffer, VC Net sees only the first character, any ideas????
Posted by D.Frangiskatos at 7/25/2003 6:23:07 AM
Hi, I have been working for a few months in project that deals raw sockets. However recently, and while trying to examine the contents of the buffer used in recvfrom i was a bit confused. The buffer was allocated using malloc as it can be seen next: do { .............. char *RecvBuf...more >>

Deploying C++
Posted by brm NO[at]SPAM morrisb.fsnet.co.uk at 7/25/2003 5:37:12 AM
Hi, I have a project that uses the c runtime libraries a bit of opengl and nothing else. If I build the .exe for release using Visual Studio 6 I can copy the .exe onto Win98,NT and 2K/XP and run it with no probs. If I build the same .exe using Visual Studio.NET and drop the .exe onto the ab...more >>

iostream
Posted by Shane Ragone at 7/25/2003 5:13:37 AM
What happened to iostream.h in VS .NET? Are we now to code: #include <iostream> instead of: #include <iostream.h> All my past code that used iostream.h will no longer compile. It seems that I have to go through all my code and replace iostream.h with iostream. Is there any good r...more >>

How to use MFC4.2 dll's with VC++ .NET 2003
Posted by vijaychegu NO[at]SPAM indiatimes.com at 7/25/2003 4:11:12 AM
Hi all, I have two simple question. 1) When i build a simple mfc app using VC 7.1 it uses mfc 7.1 dll's. Is there a way i can force it to build the app with mfc42 ? bcoz i cannot use this app with out supporting dll's. If i can do it, i can just give my app and not bother about distribu...more >>

obtaining vc++ 7.1 compiler
Posted by John Harrison at 7/24/2003 7:54:25 PM
Hi, I have a copy of Visual Studio 2002 Professional. What is the best way to get hold of the new VC++ 7.1 compiler? I could upgrade to VS 2003 Pro, but expensive. Could I buy VC++ 2003 Standard, that would be cheaper but would it work with my existing VS 2002 Pro? I live in the UK not in t...more >>

Separate resource for standalone class
Posted by Mihajlo Cvetanovic at 7/24/2003 5:49:48 PM
I have a class that uses a string table and some dialogs, but should be reusable, ready for localization, and should not be for MFC-only applications. How do I do that without making separate dlls? ...more >>

input/output redirection in debug
Posted by ES Kim at 7/24/2003 3:24:58 PM
Hi, I am using VC++ .NET 7.0. I'd like to debug my console program, using redirection of input/output for convenience. Help menu tells me it's possible to specify a file name as a command-line argument like '< file', but I couldn't make it. What have I done wrong? -- ES Kim ...more >>

NTDLL.DLL
Posted by Tim Peer at 7/24/2003 12:22:58 PM
Are the debug symbols for 'c:\WINNT\system32\NTDLL.DLL' available anywhere? I am debugging a multi-threaded application and it appears to get hang in NTDLL. Any help would be appreciated. Thanks! ...more >>

Mixed Mode Slow?
Posted by Jos Vernon at 7/23/2003 5:31:38 PM
I've been trying a mixed mode project but I'm having speed problems. I was using a DLL and linking into it from C#. I thought I'd try and stick the C# functionality and the raw unmanaged code into a mixed mode project. It works but it's incredibly slow. All the optimization settings are the ...more >>

VC++ 7.1 compiler bug with default parameters
Posted by johnmadsen_usenet NO[at]SPAM hotmail.com at 7/23/2003 5:08:17 PM
This bug is easier to just show than to explain I think... namespace M { template <class T> struct A { void f(int a = T::foo()) { } // line 5 }; } namespace N { struct B { static int foo() { return 5; } }; } int main() { M::A<N::B> x; x.f();...more >>

ADO.NET connection string
Posted by Duncan Winn at 7/23/2003 3:33:26 PM
I am trying to connect to an INTRBASE database through the MS OleDb.NET provider, however I am unsure of what to use for the connection string. How can I find this out??? ...more >>

Deploy VS C++ 7 Console Application ??
Posted by elvin at 7/23/2003 2:29:13 AM
Hi! How to deploy VS C++ 7 Console application that i write (no compile error), i copy the entire release folder to client pc, but when i click the exe application, it prompt missing vc70*.dll files. I have no problem to run VS C++ 6 exe application in client side. So, did i need to use the ...more >>

Attempted to access an unloaded AppDomain
Posted by Matt Fausey at 7/22/2003 3:35:09 PM
I've been plagued with an "Attempted to access an unloaded AppDomain" for several months now. We have a .NET Email Component such that for some ASP.NET customers that user our DLL will get this error occasionally. Our DLL is strongly named, so I am confused as to how this could be happening. It ...more >>

private property
Posted by Simon at 7/22/2003 2:45:48 PM
Is possible to make visible on property page a private property inherited from a usercontrol ? Ex public class A : UserControl { private: __property set_Visible( bool visibled) { .... } __property bool get_Visible(); { .... } } public cl...more >>

re: typedef TypeInfo* TYPEINFO [];
Posted by Charlie Herbert at 7/22/2003 12:43:02 PM
Could the expert explain what the "typedef" here means: typedef TypeInfo* TYPEINFO []; TYPEREFINFO GetTypeInfo( String * strname ) { ... } Thanks, Charlie...more >>

Visual C++ .net certification
Posted by ahmed fathi at 7/22/2003 7:25:18 AM
what should i do to be Microsoft certificated in Visual C++ .net ...more >>

Further to transparency
Posted by Ben Taylor at 7/22/2003 7:10:29 AM
Further to my previous post on Transparency, is it possible for an ActiveX control to get the DC of its container, so it can just draw to that? ...more >>

Transparency
Posted by Ben Taylor at 7/22/2003 6:27:45 AM
Hi, I am building an ActiveX control, which I would like NOT to be windowless (e.g. the common dialog control in Visual Basic being an example of one that is windowless, I don't want one like this), i.e. I want it to draw and have size, etc. but be largely transparent. I can sort of mimic ...more >>

VC++7 application deployed to NT4
Posted by Cliff Cooley at 7/22/2003 5:16:19 AM
Does anyone know of any issues regarding the deployment and running of a VC++7 (non-mamanged) application built on a Windows 2003 server ?...more >>

**Bug** in jitter
Posted by Lee Alexander at 7/21/2003 4:47:15 PM
Hello, I have spent the past four days nailing down what looks to me like a bug in the jitter. Problem ~~~~~~ When my program is run without the debugger attached in release an object is disposed of whilst execution is still in one of it's methods. I have a C# application talking to a manag...more >>

vs .net 2002/2003 browse problem
Posted by Eric Twietmeyer at 7/21/2003 1:29:38 PM
Hi, Does anyone know why starting with VS.NET 2002 (and same with 2003) it is no longer possible to browse to a directory that has "ept" as part of the path? It worked fine in Vc 6.x. My initials and user name happen to be "ept", and so I have directories with that name. It is no longer poss...more >>

Varaint ---> COM to .NET
Posted by Duncan Winn at 7/21/2003 12:53:02 PM
I am passing back a Variant* from COM to .NET. The pointer actually holds a void**. i.e. void ** row_array; row_array = (void**)new byte[100]; row_array[0] = (void*)70186; row_array[1] = (void*)"701.86"; row_array[2] = (void*)true; row_array[2] = (void*...more >>

Puzzling unresolved external.
Posted by 4Space at 7/21/2003 9:29:34 AM
Hi, I've just been refactoring a managed C++ class library. The managed classes use a couple of our native dlls, and the linkage on that front appears to be OK. I do however get this error at build time: THCAL error LNK2020: unresolved token (0A00002C) ??_7type_info@@6B@ Is this an unre...more >>

VC++ versus VB
Posted by Daniel Jenkins at 7/21/2003 8:27:09 AM
I'm currently charged with the task of writing a customized business application. This app will perform order entry, invoicing, accounting, etc. type tasks. Can anyone justify a decision to write this app in VC++.net as opposed to writing it in VB.net? Assumptions: everyone in department ...more >>

Use of InstallShield
Posted by Ben Taylor at 7/21/2003 4:39:34 AM
Hi, I have got InstallShield with VC++, and I would like to use it to create a setup for various types of project, e.g. a game, activeX control, etc. However the project wizard only allows you to choose an .exe, and it makes you choose between 'database application', 'finance application'...more >>

who can help me of this error?
Posted by Wonlay at 7/20/2003 1:47:09 AM
//file1.cpp #include <stdio.h> class A { public: int i; int j; A () { i = 1; j = 2; } }; class B { public: A a; static void test () { printf ("%d, %d", a.i, a.j); } }; void main () { B::test (); } //error: the left of .i .j should be a struct/class/uni...more >>


DevelopmentNow Blog