RSS Forums RSS
Please support our VB.NET advertiser: Programming Forums
Views: 6930 | Replies: 15
Reply
Join Date: Apr 2004
Posts: 3
Reputation: oni is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
oni oni is offline Offline
Newbie Poster

Re: Anyone a VB.NET Guru?

  #11  
Apr 18th, 2004
hi im quite new to vb.net and was wondering whether you know how i could print pictures stored in a file with vb.net?

thanks

Originally Posted by Tekmaven
The varient datatype equivlent in VB.NET is Object.

Here's a sample:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim MyVar as Object
MyVar = "Hello"
MyVar = 10 + 10
MyVar += 50
MyVar = New FileStream("c:\test.txt", FileMode.Open)
MyVar = Nothing
End Sub

You can set basically anything to it :-). I don't reccomend using this type often, it takes lots of memory.

Also, you may want to set your variable equal to nothing when your finished with it, just in case the GC dosen't get to it fast enough.
Reply With Quote  
Join Date: Sep 2004
Posts: 13
Reputation: dmohanty is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
dmohanty dmohanty is offline Offline
Newbie Poster

Re: Anyone a VB.NET Guru?

  #12  
Sep 2nd, 2004
.........
does vc++ .net also convert to MSIL????but according to my knowledge......vc++ .net does not convert to msil like other languages
Reply With Quote  
Join Date: Feb 2002
Location: New York
Posts: 862
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Rep Power: 12
Solved Threads: 16
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: Anyone a VB.NET Guru?

  #13  
Sep 2nd, 2004
VC++.NET compiles to MSIL or standard machine code. You can set it in the project properties. (The /clr switch)
-Ryan Hoffman

ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote  
Join Date: Sep 2004
Posts: 13
Reputation: dmohanty is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
dmohanty dmohanty is offline Offline
Newbie Poster

Re: Anyone a VB.NET Guru?

  #14  
Sep 3rd, 2004
Hmmm....
Can Any Body Say How To Hide Codes From Being Exposed....
As in Isladm.exe we can see some codes......
if i pass the password for my DataBase in my code can be exposed.......
Reply With Quote  
Join Date: Feb 2002
Location: New York
Posts: 862
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Rep Power: 12
Solved Threads: 16
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: Anyone a VB.NET Guru?

  #15  
Sep 3rd, 2004
Don't embed your password into your app; it's very bad practice. What if the password changes? You'd need to recompile every time..
-Ryan Hoffman

ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote  
Join Date: Sep 2004
Posts: 13
Reputation: dmohanty is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
dmohanty dmohanty is offline Offline
Newbie Poster

Re: Anyone a VB.NET Guru?

  #16  
Sep 6th, 2004
Actually i want to hide the database password from my clients.......if they will give the password then they will have authorities over database what i dont want so what to do???
i cant embded password in application for exposure risk.......so is there any good way to do those????
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 9:43 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC