473,396 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Visual C++ Projects in Visual Studio 2003 .NET

I have a Visual C++ Project (a C++ dynamic DLL) in Visual Studio 2003
..NET. I want to use for example the _beginthreadex() function, but I
cannot compile my code. The compiler breaks up with the message :

'_beginthreadex': identifier not found, even with argument dependent
lookup

I added the include path to to the <process.h> file in SDK in the
project options, but it does not help.
I tried also to change the project options for the "Use of MFC"
parameter to "Use standard Windows libraries" or "Use MFC in a shared
DLL", but it did not help either.
Does anybody have any hint please ?
Thanks in advance.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 23 '05 #1
6 4835

"Abra" <no****@devdex.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
I have a Visual C++ Project (a C++ dynamic DLL) in Visual Studio 2003
NET. I want to use for example the _beginthreadex() function, but I
cannot compile my code. The compiler breaks up with the message :

'_beginthreadex': identifier not found, even with argument dependent
lookup

I added the include path to to the <process.h> file in SDK in the
project options, but it does not help.
I tried also to change the project options for the "Use of MFC"
parameter to "Use standard Windows libraries" or "Use MFC in a shared
DLL", but it did not help either.
Does anybody have any hint please ?
Thanks in advance.

*** Sent via Developersdex http://www.developersdex.com ***


I don't have a specific answer to your issue, but I have a suggestion for an
additional posting location if you don't get answers here in the C# (C
Sharp) group. Try posting in:

microsoft.public.dotnet.languages.vc (the C++ group)

as your question appears to be about C++.

--
Peter [MVP Visual Developer]
Jack of all trades, master of none.
Nov 23 '05 #2

Abra wrote:
I have a Visual C++ Project (a C++ dynamic DLL) in Visual Studio 2003
.NET. I want to use for example the _beginthreadex() function, but I
cannot compile my code. The compiler breaks up with the message :

'_beginthreadex': identifier not found, even with argument dependent
lookup

I added the include path to to the <process.h> file in SDK in the
project options, but it does not help.
I tried also to change the project options for the "Use of MFC"
parameter to "Use standard Windows libraries" or "Use MFC in a shared
DLL", but it did not help either.
Does anybody have any hint please ?
Thanks in advance.


The most likely situation is that you aren't linking with the
multi-threaded
libraries. _beginthreadex is only defined with multi-threading.

Note: This is really a C# group.

Matt

Nov 23 '05 #3
Make sure you are using the multithreaded CRT/MFC runtimes.
"Abra" <no****@devdex.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
I have a Visual C++ Project (a C++ dynamic DLL) in Visual Studio 2003
NET. I want to use for example the _beginthreadex() function, but I
cannot compile my code. The compiler breaks up with the message :

'_beginthreadex': identifier not found, even with argument dependent
lookup

I added the include path to to the <process.h> file in SDK in the
project options, but it does not help.
I tried also to change the project options for the "Use of MFC"
parameter to "Use standard Windows libraries" or "Use MFC in a shared
DLL", but it did not help either.
Does anybody have any hint please ?
Thanks in advance.

*** Sent via Developersdex http://www.developersdex.com ***

Nov 23 '05 #4
>>Make sure you are using the multithreaded CRT/MFC runtimes.

In the Project menu, C/C++ tab, category "Code Generation", the value of
Use Run-Time Library is already set to "Multithreaded using DLL", but I
still get the same error message. Or is there something else to be done
?

P.S. Sorry for continuing to post here, but I got no answer to my
question in the VC newsgroup ...

*** Sent via Developersdex http://www.developersdex.com ***
Nov 24 '05 #5
The problem seems to be the order of including headers ...

If I have this :

#include <process.h>
#include "stdafx.h"

, the compiler generates the error message.
If I have this :

#include "stdafx.h"
#include <process.h>

, the compiler compiles without errors.

Does anyone have an explanation for this behaviour ?
*** Sent via Developersdex http://www.developersdex.com ***
Nov 24 '05 #6


"Abra" <no****@devdex.com> wrote in message
news:OA**************@TK2MSFTNGP12.phx.gbl...
The problem seems to be the order of including headers ...

If I have this :

#include <process.h>
#include "stdafx.h"

, the compiler generates the error message.
If I have this :

#include "stdafx.h"
#include <process.h>

, the compiler compiles without errors.

Does anyone have an explanation for this behaviour ?
*** Sent via Developersdex http://www.developersdex.com ***


There is a general rule that say's #include "stdafx.h" should precede all
other includes.
But please, you might get better answers when you post such questions to the
vc NG.

Willy.
Nov 24 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
4
by: Hawkmoth | last post by:
Hi I hope you can help with what seems to be a simple problem that is driving me nuts! I am developing a C# application using Visual studio 2003 and I need to use Office 2003 automation. In...
1
by: Nile | last post by:
helo, I needed to create office projects from Visual Studio and installed Office Pro 2003. Visual Studio 2003 in already running. But after Office installation is completed, I wasn't able to see...
26
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
1
by: AmiciDan | last post by:
When I attempt to create a new project in Visual Studio .NET 2003, I do NOT have the option to create the following: Microsoft Office 2003 Projects What do I need to install or do to get this...
3
by: epigram | last post by:
I've been creating some toy ASP.NET apps in an effort to understand the technology. I've something odd with regards to project/solution creation. If you create a new asp.net application, it...
3
by: Shapper | last post by:
Hello, I am starting 2 new projects to deliver in January 2006. I want to create them in Asp.Net 2.0 using Visual Studio 2005. All my clients web sites are Visual Studio 2003 projects in...
6
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free)...
4
by: rohinichandrap | last post by:
Hi , I have quite a few questions about Visual Studio :Net 2003 and clear case Could anyone please help me with the answers. I have converted a workspace abc.dsw from visual studio 6 to...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.