Go to Post We should all just be humble, courteous, and act like gentlemen (or ladies) on these forums, and not fill it with yakking about who's drive train is better. - Veselin Kolev [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-01-2003, 20:33
Adam Shapiro's Avatar
Adam Shapiro Adam Shapiro is offline
Registered User
FRC #0555 (Montclair Robotics)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Montclair, NJ
Posts: 401
Adam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud of
Send a message via AIM to Adam Shapiro
No Winsock OCX??

I wrote an app a little while ago in VB6 that used a winsock control to get updates from a Counter-Strike server. After reformatting, I was unable to find my VS6 CD but I figured it would be ok since I now had VS.NET. It seems that .NET does not come with the mswinsck.ock control file. I was wondering if there was a way to get this file? Maybe I can just copy another file from the new VS? Some help on this would be much appreciated.
__________________
Mentor to Teams 555, 1929, and 2070!
Currently working in hardware design at Cisco.
Cornell University DARPA Urban Challenge - http://www.cornellracing.com
Co-Captain Team 555 - 2003,2004,2005
Trust, Love, and Magic
  #2   Spotlight this post!  
Unread 16-01-2003, 16:25
rust710's Avatar
Happy Birthday! rust710 rust710 is offline
Registered User
#0862 (Lightning Robotics)
 
Join Date: Dec 2002
Location: Canton, MI
Posts: 103
rust710 is an unknown quantity at this point
Send a message via AIM to rust710
Well you are right. .Net does not have Winsock. You have to use the sockets class. I am not sure how or what is required but I think it is similar to winsock. I would search the MSDN library or goto Microsoft.com and look for and example. I would also try looking at www.visualbasicforum.com or www.winsockvb.com . They are great forums that should help you with what you are doing. I hope this helps. Good luck.

[edit]
This address should also help:
http://msdn.microsoft.com/vbasic/dow...es/default.asp
[/edit]
  #3   Spotlight this post!  
Unread 16-01-2003, 17:52
Jeremy_Mc's Avatar
Jeremy_Mc Jeremy_Mc is offline
GitHubber
no team
Team Role: Mentor
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Orlando, FL
Posts: 496
Jeremy_Mc will become famous soon enoughJeremy_Mc will become famous soon enough
yes .NET you have to use the sockets class...

you have to import/reference it, create a new instance (with code), then call events from it.

stupid .NET...they took the basic outta vb. gimme visual studio 6 and i'm happy

*jeremy
__________________
GitHub - Collaborate on code, documentation, etc. - http://github.com
  #4   Spotlight this post!  
Unread 16-01-2003, 19:49
Curtis Williams Curtis Williams is offline
Registered User
#0588 (Team 588)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Jacksonville, FL
Posts: 122
Curtis Williams is on a distinguished road
Send a message via ICQ to Curtis Williams Send a message via AIM to Curtis Williams Send a message via MSN to Curtis Williams Send a message via Yahoo to Curtis Williams
i wanted to learn .net programming and decided to move up to C# since vb has gotten more complex anyway.
  #5   Spotlight this post!  
Unread 16-01-2003, 20:00
Adam Shapiro's Avatar
Adam Shapiro Adam Shapiro is offline
Registered User
FRC #0555 (Montclair Robotics)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Montclair, NJ
Posts: 401
Adam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud of
Send a message via AIM to Adam Shapiro
I agree. I installed .NET yesterday and I am already confused! It seems like they mushed C++ and VB together to come up with a "super" language... It was like you used VB scripting rules with a C++ class-based interface. I couldn't figure it out. I tried a simple cout C++ program (the generic "Hello World!") with iostream but it wouldn't display... Too confusing...
__________________
Mentor to Teams 555, 1929, and 2070!
Currently working in hardware design at Cisco.
Cornell University DARPA Urban Challenge - http://www.cornellracing.com
Co-Captain Team 555 - 2003,2004,2005
Trust, Love, and Magic
  #6   Spotlight this post!  
Unread 16-01-2003, 21:30
rwaliany's Avatar
rwaliany rwaliany is offline
R
None #0691 (HartBurn)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 2000
Location: http://www.hartrobot.com
Posts: 137
rwaliany will become famous soon enough
I don't seem to be having any problems. The only things I really hve to change in my C++ programming is when I call like std::vector<int> temp;

temp.size(); = unsigned int
Eventually, which gives me a linking error

for(int i = 0; i < temp.size(); i++)

^ wrong
for(unsigned int i = 0; i < temp.size(); i++)

^ correct


My DirectX building classes seem to work fine, but I use like all std:: stuff except for win32 and DX code.

I don't recommend using MSVC++ .NET for simple console applications

#include <iostream>

int main(int argc, const char* argv[])
{
std::cout << "Hello World!" << std::endl;
return 0;
}

Just made me a 452KB executable...

Pfft. what does it do, recreate the console, with it's own original paint functions without calling dlls, etc?

Well, at least my DirectX client for one of my games was reduced from 240KB to 150KB. It's not much of a game, just sockets which connect to my C server, directdraw, input, music...

oh yeah, trying std::library in precompiled headers doesn't seem to work, but it works in VSC++ 6.0, go figure. Actually it does, but it doesn't seem to work for some streamed classes. IE: iostream and string.

Quote:
I tried a simple cout C++ program (the generic "Hello World!") with iostream but it wouldn't display... Too confusing...
Create a win32 project, go to some additional options tab, and make it console based. Get rid of precompiled headers too.

I haven't looked at VB .NET, but C++ 7.0 doesn't look different to me at all vs. 6.0. It's a lot nicer, but still isn't very good for simple applications (console based). I would probably recommend pcgrasp with the borland C++ library/compiler "freecommandlinetools.exe". Search yahoo or something.
__________________
R

Last edited by rwaliany : 16-01-2003 at 21:32.
  #7   Spotlight this post!  
Unread 16-01-2003, 23:04
Adam Shapiro's Avatar
Adam Shapiro Adam Shapiro is offline
Registered User
FRC #0555 (Montclair Robotics)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Montclair, NJ
Posts: 401
Adam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud ofAdam Shapiro has much to be proud of
Send a message via AIM to Adam Shapiro
Thanks for the advice. I to get the mswinsck.ock file that my program required I reinstalled VS 6 rather than rewrite the source for the program. I think it will just take me some time to get into .NET. For now though, I think I will stick with 6. I need to work on my DirectX for the new, 3d dashboard program... By the way, anyone who wants to help on the program, I would love the assistance...
__________________
Mentor to Teams 555, 1929, and 2070!
Currently working in hardware design at Cisco.
Cornell University DARPA Urban Challenge - http://www.cornellracing.com
Co-Captain Team 555 - 2003,2004,2005
Trust, Love, and Magic
  #8   Spotlight this post!  
Unread 19-01-2003, 16:46
yangotang's Avatar
yangotang yangotang is offline
Registered User
#0253 (MRT)
Team Role: Programmer
 
Join Date: Jan 2003
Location: San Mateo, California
Posts: 128
yangotang is on a distinguished road
Send a message via AIM to yangotang
Forget M$ VisualStudio.Net..

I'm still sticking to CodeWarrior Release 7 to do my code work.

I hate M$ anyways. M$ is the devil.

--yang
  #9   Spotlight this post!  
Unread 19-01-2003, 17:04
rwaliany's Avatar
rwaliany rwaliany is offline
R
None #0691 (HartBurn)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 2000
Location: http://www.hartrobot.com
Posts: 137
rwaliany will become famous soon enough
M$ is the devil. But that's where all the money is.
__________________
R
Closed Thread


Thread Tools
Display Modes 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
Dashboard OCX file Ameya Programming 2 31-12-2002 14:50


All times are GMT -5. The time now is 04:28.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi