|
Did you install managed C++ ? It doesn't install automatically, it needs a command line switch. Then you should have C#/VB.NET samples.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have C++ and Managed in the DirectX SDK folder. In managed I only find C# samples and no VB.NET.
|
|
|
|
|
There are no VB.NET samples in the DirectX SDK anymore. For some reason they have dropped support for VB.NET. This is now way means that you can't use VB.NET with DirectX, there just no documentation support for it. Use the C# examples and translate the code. Much of C#'s syntax maps almost directly to VB.NET statements.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Well that aswers my question why I could't find anything on the internet, not happy with it though!
You don't have any code on this by any chance? I'm unfamiliar with C#. Will try it anyway.
Thanks for your help.
|
|
|
|
|
Jerry___ wrote:
not happy with it though!
Neither are the people on the DirectX team at Microsoft.
Jerry___ wrote:
You don't have any code on this by any chance?
Nope.
Jerry___ wrote:
I'm unfamiliar with C#. Will try it anyway.
If you know VB.NET, you know more about C# than you think. If you look at the MSDN documentation, there are thousands of code samples for everything in the .NET Framework, written in both VB.NET and C#. There's your Rosetta Stone. You don't need examples written speciffically in VB.NET to learn about the .NET Framework and DirectX. The managed objects are the same between them because they're using the exact same objects. There isn't a VB.NET version and a C# version. All you have to do is compare any VB.NET samples to the C# samples (MSDN example code supplies both for neearly every in the docs) and take note of what each line does and compare it to the other languages equivilent. It's pretty easy.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 11:16 Monday 19th September, 2005
|
|
|
|
|
Hello again,
I'm allmost done. the program works just like the C# one.
Still one problem, need to translate this to VB.Net:
byte[] buttons = state.GetButtons();<br />
<br />
int button = 0;<br />
foreach (byte b in buttons)<br />
{<br />
if (0!= (b & 0x80))<br />
strText += button.ToString("00 ");<br />
button++;<br />
}<br />
labelButtons.Text = strText;<br />
}
Cant figure out the 0x80 part, and cant find it anywhere either, not even in the help section.
I suppose ("00 ") is a format.
The rest works just fine; you were absolutely right about knowing more about C# than you think!
|
|
|
|
|
All problems solved!
App up and running, fully functional, exactly the same as in the C# example. Very pleased.
If anybody needs it, let me know.
Thanks again.
|
|
|
|
|
I have a mother form and two child forms. How can I properly code VB.NET to show (make it appear) the second form still recognized as "child" form of the mother though what I've clicked is the active child form's button? For instance, I have one active child and I click its button and another child form appears. How can I "tell" this second form that it is a child not of the one who called it but of the mother form? Thanks...
|
|
|
|
|
Creation of child forms should really be left up to the parent form. But,
Dim newChild As New myForm2()
newChild.MdiParent = Me.MdiParent
newChild.Show()
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I need to establish a connection between one PC and a PocketPC.
Someone can guide me about how can I start?
Thanks
|
|
|
|
|
|
Thanks a lot!
Very useful links!!
|
|
|
|
|
Any one can make it?
I make form opaque and transparent doing
setstyle(controls.transprant,true)
setstyle(controls.opaque,true)
and
me.backcolor=color.transprant
it i make ellispe in form it looks like rounded firm
but if i move that form it have backgroud . it is not transprant form
How can i make permanent rounded form and round button?
Anyone can help me?
|
|
|
|
|
Do ANYONE know anything about this? I have searched hours upon hours this last week to see if anyone can acurrately answer my questions on this topic. I have been trying to get the extended properties for VB.NET 2003 ListView to work. Am I at least on the right track with:
Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" ( _
ByVal hwnd As Int32, _
ByVal wMsg As Int32, _
ByVal wParam As Int32, _
ByVal lParam As Int32) As Int32
Const LVM_GETEXTENDEDLISTVIEWSTYLE = LVM_FIRST + &H37
Const LVM_SETEXTENDEDLISTVIEWSTYLE = LVM_FIRST + &H36
Const LVS_EX_UNDERLINEHOT As Int32 = &H800
* Note I have several if not all other LVM and LVS_EX constants declared
Some of them work, some of them don't but I am throwing them all into this function call:
SendMessage(ListView1.Handle.ToInt32, Me.LVM_SETEXTENDEDLISTVIEWSTYLE, 0, Me.LVS_EX_UNDERLINEHOT)
*I have even tried Listview1.update() after this call - I realize the one click or two click activate must be enabled in conjunction with this for it to work and have done so via the properties option of the control as well as "Or"ing it with LVS_EX_ONECLICKACTIVATE, still no dice.
Still the Hot items do not get underlined. However if I try
SendMessage(ListView1.Handle.ToInt32, Me.LVM_SETEXTENDEDLISTVIEWSTYLE, 0, Me.LVS_EX_ONECLICKACTIVATE)
The icon changes to a hand (finger pointing) and it seems as though the message is succesfull.
WHY DOES THIS WORK ON SOME AND NOT ON OTHERS!?!?
*Also before you ask, I am aware of the GETEXTENDEDSTYLES and assigning it to a variable and then "Or"'ing it into conjunction with other constants as to not turn off all other extended styles and what not. NOBODY SEEMS TO KNOW ANYTHING ABOUT THE EXTENDED STYLES OF LISTVIEWS AND/OR HOW TO SUCCESSFULLY USE THEM IN VB.NET - WHY IS THE API SUCH A TRICKY SUBJECT THAT HARDLY ANYONE KNOWS ANYTHING ABOUT AND WHY DOES MICROSOFT MAKE GETTING THAT INFORMATION SO HARD?
PLEASE SOMEBODY HELP ME!!!
*If you want to have an idea of what I am trying to do here I posted a question on stopping the ListView from flickering in the VB.NET postings about a week ago. My final objective is to successfully get the LVS_EX_DOUBLEBUFFER to work. PLEASE HELP ME!!!!
|
|
|
|
|
I have been having a lot of trouble trying to write to a database. So I thought I would do a quick test. I set up a simple output to a text file, but it wont work. It says I have to grant ASP.NET access rights.
The advice I get from asp.net is
"To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the Write box in the Allow column."
But when I right-click my file there is no secutity option. Can anyone tell me how to grant .net access right for my database?
HEEEEELP!!!
|
|
|
|
|
Do you have your disk formatted in NTFS? I think you have to in order to use those permissions. That being said, there should be another way to set the permissions for the folder it is in. What OS and version of IIS are you running?
Brian Van Beek
Here's my boring blog! [^]
|
|
|
|
|
I'm using xp professional
|
|
|
|
|
|
i am writing a control and have inherited from system.windows.forms.control and is there any way to supress certain functionality like the backcolor and font properties because i have no use for these with the control would be greatfull for any help and replies
Thanks Dan
Dan
|
|
|
|
|
You could override them and make them private.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
When i override it i cant make it private because the access modifiers do not match.
Thanks Dan.
|
|
|
|
|
I want to learn vb.net.I had work in Vb 6.0
|
|
|
|
|
|
Hi I have made a text editor in VB.net. I want to know that how can i make it default text editor of window through the programming or setup. Please tell me.
Thanks.
|
|
|
|
|
Assuming you are running windows xp, Right click on a text file and click open with -->choose program.., then select your program from the list (or alternatively browse for it) then check the check box on the bottom of the dialog that says "Always use the selected program...."
Brian Van Beek
Here's my boring blog! [^]
|
|
|
|