GIDForums  

Go Back   GIDForums > Computer Programming Forums > .NET Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Oct-2007, 10:06
amiashu amiashu is offline
New Member
 
Join Date: Oct 2007
Posts: 4
amiashu is on a distinguished road

User defined types or Type Alias


Hi Everyone,

I have a C/C++ code and i have to convert it to vb .net and i did not create the original C/C++ program

so while doing that i came across typedef which allows you to create type aliases so you can rename a type as something else now is there anything in vb .net that allows you to do that

or this is just one of those things where vb .net will never be able to match the simple feature of C/C++?

sample code
CPP / C++ / C Code:
typedef short abc;
abc var1;

Thanks,
Amit
  #2  
Old 18-Oct-2007, 12:43
TurboPT's Avatar
TurboPT TurboPT is offline
Senior Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 1,233
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: User defined types or Type Alias


Maybe the 'Delegate' keyword?

See this article here:
http://www.codeproject.com/vb/net/Delegate.asp

The article specifically uses 'Delegate] with functions, but I didn't check sample source links. I would assue it could be used on types too, but not sure. [I don't have VB.NET where I'm located to try]
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
  #3  
Old 18-Oct-2007, 13:53
amiashu amiashu is offline
New Member
 
Join Date: Oct 2007
Posts: 4
amiashu is on a distinguished road

Re: User defined types or Type Alias


Quote:
Originally Posted by TurboPT
Maybe the 'Delegate' keyword?

See this article here:
www.codeproject.com

The article specifically uses 'Delegate] with functions, but I didn't check sample source links. I would assue it could be used on types too, but not sure. [I don't have VB.NET where I'm located to try]

oh thanks for the reply

but i did see that particular article and also tried that

but it only works for sub and function

so when you use delegate keyword, it must be followed by a sub or function

thanks for your concern

Amit
 
 

Recent GIDBlogVista ?Widgets? on Windows XP by LocalTech

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vector of user defined type ktcm C++ Forum 7 13-Sep-2007 10:28
Hard drive/CPU Diagnoses Issues binarybug Computer Hardware Forum 1 22-Jan-2007 19:23
[Include] Doubly-linked List dsmith C Programming Language 6 14-Apr-2006 13:12
C++ PhoneBook marita C++ Forum 46 12-Jun-2005 12:10
User defined data types Kareem1984 C Programming Language 1 06-Oct-2004 18:26

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 02:12.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.