|
hi there.. thanks for replying... yeah we're using Microsoft Cluster. i'll try that and see what i can do from there..
thanks for the help...really appreciated by a newbie like me..
|
|
|
|
|
Hi there.. I’ve seen the link on the documentation of server cluster API’s from msdn but it seems that it was just applicable for windows server 2003 and codes for C++. We only have windows 2000 advanced server. I’m developing remotely from the servers and I really have no idea how to access and manipulate these APIs using asp/vb.net.. Can you give me an idea how to do this in asp/vb.net? I’m really a newbie with this technology.. hope you can help me.. thanks.. more power..
|
|
|
|
|
The API calls work on any Windows Server 2003, Windows 2000 Datacenter or Advanced Servers, or NT4 Enterprise SP# or better. I think your looking at the WMI objects. Those are Windows Server 2003 only.
You can call the cluster API's from VB.NET just as you can call any of the Win32 API functions. There is very little information on using the Cluster API's in VB/VB.NET, so it's definately going to be a research project, trial-and-error kind of thing. There is no known example code either.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
yeah.. i've also done some research and so far i have not seen any codes/project like this before..got really no idea how to do this and i'm stuck with this project for 2 months now..
anyway, thanks a lot for your time and goodluck to me..
|
|
|
|
|
Hi guys, can anyone help me to get Active Window, I want its properties like Height x Width and its position. like Corel Capture. can anyone help me for this
Heeren
hiren_Sb@yahoo.com
|
|
|
|
|
You can call the Win32 API function GetForegroundWindow[^] to get that windows handle. You can then pass that handle and the appropriate structures to the GetWindowRect Function[^] or the GetWindowInfo Function[^] to get the information you want.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank ya Dave, I'll try this Win32 api functions. And can you tell me is there any other functions in .Net to do is instead of using Win32 Apis.
Thank ya again
Heeren Bhanushali
hiren_sb@yahoo.com
|
|
|
|
|
No there isn't. The .NET Framework BCL doesn't wrap the entire Win32 API.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank ya.. Dave, Thanx for your reply.. Well, can we chat .. or may i have your email ID
Heeren Bhanushali
heeren@fissionvector.com
|
|
|
|
|
Nope. I only chat with people here at CodeProject. I do this in my spare time, which is rare nowadays.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Took a file name broken up by delimitors the user picks and passed it to an array.
strFile = Path.GetFileName(strFilePath) 'need to extract the filename without the full path
strSplitArray = strFile.Split(strDelim) 'split file name & store it in strSplitArray
strDirName = strSplitArray.GetValue(0) 'first element of strSplitArray will be the dirName
If strDelim <> (strSplitArray.GetValue(1)) Then
MessageBox.Show("Check Delimitor value equals the one used in the string.", "Check Delimitor", MessageBoxButtons.OK, MessageBoxIcon.Error)
Exit Sub
End If
This is the code I am using to compare the Global Var the user picks as the delimitor to the one in the file.
My_New_File.txt
I got My out to make a new folder name with:
strDirName = strSplitArray.GetValue(0) 'first element of strSplitArray will be the dirName
So I thought replaceing (0) with (1) in the array I would get the delimitor but instead I get a "Index is out of array Bounds" error???
Web and book show the syntex is correct ???
What the???
|
|
|
|
|
The Split function never returns a delimiter. Example:
-------------------------------------------
strDelim = "\"
strFilePath = "C:\Program Files\MyApp"
strSplitPath = strFilePath.Split(strDelim)
-------------------------------------------
This code will return:
strSplitPath(0) = "C:"
strsplitPath(1) = "Program Files"
strSplitPath(2) = "MyApp"
Example 2:
-------------------------------------------
strDelim = "\"
strFilePath = "C:\Program Files\MyApp\"
strSplitPath = strFilePath.Split(strDelim)
-------------------------------------------
This code will return:
strSplitPath(0) = "C:"
strsplitPath(1) = "Program Files"
strSplitPath(2) = "MyApp"
strSplitPath(3) = null string (there was nothing after the third delimiter)
|
|
|
|
|
Thanks will sort things out now.....
Will post finnished App and Code when finnished...
|
|
|
|
|
hello...
can anybody help? is there a way to print what a textbox contains straight to the printer? i can't seem to figure it out... thanks!!
|
|
|
|
|
|
|
Tooting your own horn are you?
That article didn't exist at the time. And after seeing it, I wouldn't recommend it to anyone, yet. You've got a lot of work to do to clean up that code so it's readable, let alone orgainized into logical blocks. On top of that, I hate it when people just post code with some comments in it but don't actually write an article explaining the code and theory behind it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi! is there some sort of printer settings that i need to follow prior to the code? it doesn't seem to be working. if i use the "print a string" method, it justs prints the first letter. if i use the "print a file" methond, it prints only the first word.
|
|
|
|
|
On most printers today, you have to send a Form Feed character (ASCII 12) to the pritner to get it to form feed and print the contents of the buffer. If it still does not print, then there is some setting or flush commadn you hvae to send to the printer. But, only the documentation on the printer will tell you what that is. You might even have to go to the manufacturer to get that information.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
if u need i can send an example, Send email for demand
|
|
|
|
|
HELLO...there..
i hope someone can help me...to teach me how to insert animation text and graphic into the VB programming.
This is for my course project for Subject Human Computer Interaction. Title of my project course is...Pre-child Couseware..
So if anyone, whose know how to solve my problem...please reply to me...in addition to that, i m very gratefull if someone can give my a sample of SOURCE CODES programming that having animation on it. i hope to hear soon for you all. That's all thank you....
|
|
|
|
|
You need to use a control that can contain animation, such as a web browser ( flash ) or a windows media player (mpeg).
To animate text, just do it yourself.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
How do you perform a task like firing off a menu item in MS Word from a VB.NET Application?
Graham Irons
|
|
|
|
|
I need to convert a floating number to hex, then convert that number (Hex number) to decimal.
Can anyone help please!
|
|
|
|
|
A hex representation is going to be a string, so use string.format. Then use convert.ToDecimal.
I've never seen a floating point hex number before, what do you need that for ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|