473,327 Members | 1,976 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,327 software developers and data experts.

VC++2005 equivalent code of partial C# keyword

Hello
in C# : Partial type definitions allow the definition of a class, struct or
interface to be split into multiple files.
I'd like to have the equivalent keyword of partial in VC++
does someone has an idea?
Thanks in advance
Nov 17 '05 #1
5 1267
tlemcenvisit <tl**********@discussions.microsoft.com> wrote:
Hello
in C# : Partial type definitions allow the definition of a class, struct or
interface to be split into multiple files.
I'd like to have the equivalent keyword of partial in VC++
does someone has an idea?
You can only split the definition of a class'
member functions over as many file as you
like. The class itself needs to be defined in
one piece.
Thanks in advance

Schobi

--
Sp******@gmx.de is never read
I'm Schobi at suespammers dot org

"Coming back to where you started is not the same as never leaving"
Terry Pratchett
Nov 17 '05 #2
I want an equivalent to "partial" keyword
Nov 17 '05 #3
tlemcenvisit <tl**********@discussions.microsoft.com> wrote:
I want an equivalent to "partial" keyword

Which I don't know.

Schobi

--
Sp******@gmx.de is never read
I'm Schobi at suespammers dot org

"Coming back to where you started is not the same as never leaving"
Terry Pratchett
Nov 17 '05 #4
tlemcenvisit wrote:
Hello
in C# : Partial type definitions allow the definition of a class,
struct or interface to be split into multiple files.
I'd like to have the equivalent keyword of partial in VC++
does someone has an idea?
Thanks in advance


There is no equivalent.

-cd
Nov 17 '05 #5
Hello
in C# : Partial type definitions allow the definition of a class, struct
or
interface to be split into multiple files.
I'd like to have the equivalent keyword of partial in VC++
does someone has an idea?
Thanks in advance


Hmmmm in what context would you like this? Meaning, why exactly
you want to split a class definition in multiple .h files?

You could always play with the preprocessor, I believe!

ClassX.h:
--------Cut here --------------
class X
{
public:
void f1();
void f2();
void f3();

#include "classX2.h"
--------Cut here --------------

ClassX2.h:

--------Cut here --------------
void f4();
void f5();
#include "classX3.h"
--------Cut here --------------

ClassX3.h:

--------Cut here --------------
private:
void f6();
int a,b,c;

}
--------Cut here --------------

But I don't easily see an advantage on doing this and wouldn't recommend it.

Fabro
Nov 17 '05 #6

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

Similar topics

2
by: um | last post by:
When the POSIX pthreads library for w32 release 2-2-0 (http://sources.redhat.com/pthreads-win32/) is compiled with VC++6 then it compiles and passes all the benchmark tests in the subdirectory...
10
by: Adriano Coser | last post by:
Hello. I'm moving an application VC 2003 to VC 2005 Beta2. I need to set STA ApartmentState model so the drag & drop registration can work. I used to do...
6
by: John Gabriel | last post by:
I have been obtaining the following error in the output window of the IDE: 1>mt.exe:general error c101008d:Failed to write the updated manifest to the resource of file "..\debug\test.exe". The...
2
by: Atlantis11500 | last post by:
Hi guys, as I have downloaded the latest beta2 version of VC 2005. I found that the IDE is not as powerful as vc#. My question is whether vc has lost the important position?
20
by: Nemanja Trifunovic | last post by:
Something I don't get it: Say we have: ref class Base { virtual void SomeVirtualFunction() {Console::WriteLine(L"Base");} public: void SomeAccessibleFunction() {SomeVirtualFunction();}
7
by: Mihajlo Cvetanović | last post by:
Hi all, I've been trying to find some info on Visual C++ 2005 Standard on Microsoft's site, but wasn't able to find any. There's only VC++ 2005 Express Edition, and Visual Studio 2005 Standard,...
2
by: VB | last post by:
Hi, I was attempting to implement partial specialization using VC 2005. However i cannot get my code to compile :( .. Can you please help me? template <typename TYPE1> class myClass<TYPE1,...
3
by: lewisksh | last post by:
hi, i have 1 MFC project which is written using VC++2003 but i need to migrate to VC++2005. The program (VC++2003) is working fine. but there is erros occur when running in VC++2005, and i just...
4
by: =?Utf-8?B?QXJqdW4=?= | last post by:
Hi, After migrating my application from VC++ 6.0 to VC++ 2005, I receive the error C2593 'operator +=' is ambiguous. It refers to the following line: Name += pManager->GetAgentName(); ...
27
by: Jason Doucette | last post by:
I'm getting an assertion fire from a list iterator being checked against NULL. This did not occur in VC++ 2003 (v7.1). Are there changes that have been made to the STL between these versions that...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.