|
It seems to be a matter of personal choice.
Microsoft recommends its use, but many decry it. I am mainly a C# coder and I tend to use the C# equivalent 'this', as it helps me to distinguish between members which are local - to a block and those that are local - to a class.
I have yet to see anything that might be called definitive, except for the MS Coding Style Guidelines[^], in case you are interested.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Ok great, thanks for the help 
|
|
|
|
|
I am able to create a structure inside a structure in vb.net but i am confused as to assign values to the inner structure. I want to send the root structure (which contains the value of its own as well those of the inner structure) to another procedure. Someone please help. Thanks in advance
modified on Wednesday, May 27, 2009 6:07 AM
|
|
|
|
|
Something like this?
Public Structure InnerStruct
Public InnerTest As String
End Structure
Public Structure RootStruct
Public Test As String
Public myStruct As InnerStruct
End Structure
Public Class Form1
Public Sub ShowInnerText(ByVal whatStruct As RootStruct)
MessageBox.Show(whatStruct.myStruct.InnerTest)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim newStruct As RootStruct
newStruct.myStruct.InnerTest = "Hello world"
ShowInnerText(newStruct)
End Sub
End Class
I are troll
|
|
|
|
|
Expanding on Eddy's example:
Public Structure InnerStruct
Public InnerTest As String
Public Sub Init
InnerTest = "initialize your vars here"
End Sub
End Structure
Public Structure RootStruct
Public Test As String
Public myStruct As InnerStruct
End Structure
You can have subs etc, within a struct. You can also have a CTOR; although it must have parameters. Just another option for you.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Thank you very much for your help. Your code works fine. You have taught me how to do that. Previously I placed the InnerStruct inside the RootStructure and was groping around. Can it be done that way or was it a wrong approch ? Thank you once again.
|
|
|
|
|
You mean like this?
Public Structure RootStruct
Public Test As String
Public myStruct As InnerStruct
Public Structure InnerStruct
Public InnerTest As String
End Structure
End Structure That's valid too. Just don't forget to include a field that instantiates the struct in the RootStruct
I are troll
|
|
|
|
|
Okay, i got it. Thank you very much for your time and help.
|
|
|
|
|
Launch a process with ShellExecuteEx, I wanted to ask if it was possible to freeze, pause the process and subsequently restart it?
Of this process for now I have available hProcess(Index) = SIX (Index).HProcess
Thank you.
With SEI(Index)
.cbSize = Len(SEI(Index))
.fMask = SEE_MASK_NOCLOSEPROCESS Or SEE_MASK_FLAG_NO_UI
.hWnd = OwnerhWnd
.lpVerb = "Open"
.lpFile = Filename
.lpParameters = Parematri
.lpDirectory = vbNullChar
.nShow = SW_SHOWNORMAL
.hInstApp = 0
.lpIDList = 0
End With
r = ShellExecuteEx(SEI(Index))
|
|
|
|
|
No, it's not possible to "freeze" another process and then restart it. If you don't want it running, don't launch it.
|
|
|
|
|
HI ALL,
I am trying to run my application as a Operating system(Directly from Boot menu).is any one help for about this topic please help.
Thanks
If you can think then I Can.
|
|
|
|
|
First, you need to have written an operating system...
Have you written an operating system?
|
|
|
|
|
No i have not written an Operating System. But i wanna try for it. Give me some idea for written an Operating System.
If you can think then I Can.
|
|
|
|
|
Before you learn how to bake pie, you must learn how to create a universe.
Go Cosmos[^]
I are troll
|
|
|
|
|
A bootloader is 512 bytes long, and has a specific two-byte signature at the end of the file. It gets loaded at 0x7c00:0x0. You get put in real mode. BIOS interrupts are available. But before you even start writing an operating system, make sure you know C++ and assembly language (especially pointers). If you need to get any more knowledge then go to the OSDev Wiki and read anything you can find. Write some code, and follow tutorials to start with
|
|
|
|
|
Thanks Dear,
It's really halpful for me. Can i write for OS Development in MFC VC++.
If you can think then I Can.
|
|
|
|
|
Using MFC?? No, you can't since MFC relies on Windows, which, of course, won't exist under your operating system.
|
|
|
|
|
No. If you want a function, then write it. You have no malloc, strlen or strcat. You're on your own in terms of libraries. If you have the base infrastructure, you could port an existing one, but that's a lot further than a bootloader. That said, GrUB does a rather nice job of loading your kernel for you - just don't expect it to be able to load a VB.Net program - that uses the .net framework, which runs on Windows, which you can't use to boot from
|
|
|
|
|
You want to run a VB.NET app as the boot program?? Never going to happen, since the .NET Framework relies on the existance of Windows, which won't be loaded if you attempt to do what you want.
|
|
|
|
|
|
Hello Didi,
Thanks for helping. I think it's really helpful for me. It's really very big project so it's take time for learning and Implementing.
I will contect u after some time.
Thanks & Regard
Anubhava
If you can think then I Can.
|
|
|
|
|
Hi to all,
I have this strange behavior in my report for a couple of months. Can anyone have idea, Please help me.
I have >7 reportViewer on my form. Retrieving data from ms access database and putting it on the report.
Now all reports works fine except 2.
WHENEVR I TRY TO VIEW THESE 2 REPORTS IN RUNTIME, ONE DIALOG BOX APPEAR BY NAME "DATABASE LOGIN"....AND ASKING ME TO ENTER
1. SERVER NAME (DISABLE FIELD)
2. DATABASE NAME (DISABLE FIELD)
3. USERNAME (VALUE IS ADMIN) (DISABLE FIELD)
4. PASSWORD
Please help me with it.
Thanks in advance
-----------------------------
I am a beginner
|
|
|
|
|
Hello Himangshu,
I think when you are showing second report at this time Connection was already open and It generate problem for creating another connection.
So show one report at a time or Create Connection With Crystal Report by using Code and pass user name and password.
If you can think then I Can.
|
|
|
|
|
thanks for your reply Anubhava
I am showing only one report at a time...I have show button for each report....all reports and its show button are in different tab-page.
And I have done this through code only.
In this case what could be the problem?
Regards,
Himangshu S
-----------------------------
I am a beginner
modified on Wednesday, May 27, 2009 2:26 AM
|
|
|
|
|
Hello Himangshu,
Can u create connection by using DSN.i think it is better way to find result.Because i am using it.
If you can think then I Can.
|
|
|
|