I need a simple code , not pictures, not sounds, ...
only the game
if it is on the net please give the url
Can anyone write a simple tetris in visual c++ 6?
of course!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
almost all commercial games are made by C++!!!
try google's search engine to find source codes or www.msdewey.com
Tuesday, July 14, 2009
Exception when I run a program developed with C# .net 2.0?
I used visual studio 2005 to developed an application. it was working well. recenty i used "Computerinfo" class of "Microsoft.VisualBasic.Devices" namespace. for which I had to add a visual basic dll as reference. But my problem is when I run the program from Visual Studio 2005 IDE It works fine. but after publishing It throws an exception with 'detail', 'quit' and 'continue' button.
************** Exception Text **************
System.Management.ManagementException: Provider load failure
at System.Management.ManagementException.Th... errorCode)
at System.Management.ManagementObjectCollec...
at System.Management.ManagementObjectCollec...
at Microsoft.VisualBasic.Devices.ComputerIn...
at Microsoft.VisualBasic.Devices.ComputerIn...
at MountUp.MainUI.MainUI_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(.....
Exception when I run a program developed with C# .net 2.0?
I recall reading somewhere that not all of the "My" objects available to VB function properly in C#. Since most of the objects provided through the "My" keyword are available to C# through other means, it's probably better in the long run to spend a little more time to write the code for that directly. You didn't say exactly what property you were trying to access when the exception occurred, but from what I can see that's available through the ComputerInfo class you'll probably have to resort to pinvoke to get most of that info.
nil
************** Exception Text **************
System.Management.ManagementException: Provider load failure
at System.Management.ManagementException.Th... errorCode)
at System.Management.ManagementObjectCollec...
at System.Management.ManagementObjectCollec...
at Microsoft.VisualBasic.Devices.ComputerIn...
at Microsoft.VisualBasic.Devices.ComputerIn...
at MountUp.MainUI.MainUI_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(.....
Exception when I run a program developed with C# .net 2.0?
I recall reading somewhere that not all of the "My" objects available to VB function properly in C#. Since most of the objects provided through the "My" keyword are available to C# through other means, it's probably better in the long run to spend a little more time to write the code for that directly. You didn't say exactly what property you were trying to access when the exception occurred, but from what I can see that's available through the ComputerInfo class you'll probably have to resort to pinvoke to get most of that info.
nil
I need money to learn Visual C# (video tutorial) ?
Where can i get free money on net ? ...i need about 13USD.
I need money to learn Visual C# (video tutorial) ?
better is to ask about interlibrary loan It might be at a college that participates
Reply:I can't imagine why the world is full of idiots! Get your lazy *** off the couch, man.
I need money to learn Visual C# (video tutorial) ?
better is to ask about interlibrary loan It might be at a college that participates
Reply:I can't imagine why the world is full of idiots! Get your lazy *** off the couch, man.
How do I make the Visual Basic 6 GUI remain responsive during a DLL call?
My employer will not spend the money to get me Visual Basic.Net. I am stuck using Visual Basic 6. I am pretty good with programming embedded C, but have no time to learn to program in Visual C++.
So I am doing some advanced programming, in VB6, using several DLL’s. I have 4 DLL’s, and two of them use callbacks. The problem is the GUI will appear to freeze during a DLL call. When the DLL returns, everything returns to normal. I have partly cured the problem by refreshing the forms, and calling DoEvents during callbacks. This works fine, unless the user clicks on a control button. The button event will not fire until the DLL returns, or during the callback. This makes the app very sluggish.
I have tried various methods of multi-tasking. Several of them work, in the IDE, but crash at runtime. The app will crash with an exception when one of the DLL’s executes a callback.
How do I make the Visual Basic 6 GUI remain responsive during a DLL call?
Not easy to follow everything you did, but I'd try something like this:
Make a worker thread that does the DLL calls. Keep or drop the callbacks. I guess you are using callbacks to signalize progress, if so you will have trouble - VB6 is too slow for that. If you're using callbacks for other things, it may be worth reconsidering them, I don't have good experience with callbacks in VB6.
The worker thread should send simple Windows Messages to signalize progress. Even in VB6 you can post/send Windows Messages.
The User Interface thread is the main VB thread, no modifications needed. To Windows Messages are trapped by subclassing some (main) window - good source code can be found for that on Internet. This read will be responsive all the time, and no risk of crashing.
So I am doing some advanced programming, in VB6, using several DLL’s. I have 4 DLL’s, and two of them use callbacks. The problem is the GUI will appear to freeze during a DLL call. When the DLL returns, everything returns to normal. I have partly cured the problem by refreshing the forms, and calling DoEvents during callbacks. This works fine, unless the user clicks on a control button. The button event will not fire until the DLL returns, or during the callback. This makes the app very sluggish.
I have tried various methods of multi-tasking. Several of them work, in the IDE, but crash at runtime. The app will crash with an exception when one of the DLL’s executes a callback.
How do I make the Visual Basic 6 GUI remain responsive during a DLL call?
Not easy to follow everything you did, but I'd try something like this:
Make a worker thread that does the DLL calls. Keep or drop the callbacks. I guess you are using callbacks to signalize progress, if so you will have trouble - VB6 is too slow for that. If you're using callbacks for other things, it may be worth reconsidering them, I don't have good experience with callbacks in VB6.
The worker thread should send simple Windows Messages to signalize progress. Even in VB6 you can post/send Windows Messages.
The User Interface thread is the main VB thread, no modifications needed. To Windows Messages are trapped by subclassing some (main) window - good source code can be found for that on Internet. This read will be responsive all the time, and no risk of crashing.
C++ compiler and guide?
I am interested in programming and so far I only know Visual Basic, Basic, and QBasic, not so amazing. Anyway, lately I have grown interest in C++ and want to learn it. I know C++ is a massive language but are there any compilers? guides? to get statrted? I like using the 32-bit compilers, but it doesn't make a difference. Also, I have VIsual Studio.NET 2003, but I don't know hwo to use it with Visual C++. Even teaching me how to program Hello World would be fine.
C++ compiler and guide?
Well, if you'd like to find a larger selection of compilers (though Bloodshed Dev-C++ is excellent) as well as links to tutorials, try out the URL below. It has a very nice selection of reviews, articles, tutorials, compilers in lots of languages and other programming tools. Good luck.
Reply:for C++ u may refer to "Exploring C++" by "YESHWANTH KNETHKAR ".
Reply:http://www.bloodshed.net/devcpp.html
Reply:#include %26lt;iostream.h%26gt;
main()
{
for(;;)
{
cout %26lt;%26lt; "Hello World! ";
}}
is the way to write in C++..on visual basic you have the option to choose C++ as a language. you kinda have to play with it, but there are lots of web sites to get you started
C++ compiler and guide?
Well, if you'd like to find a larger selection of compilers (though Bloodshed Dev-C++ is excellent) as well as links to tutorials, try out the URL below. It has a very nice selection of reviews, articles, tutorials, compilers in lots of languages and other programming tools. Good luck.
Reply:for C++ u may refer to "Exploring C++" by "YESHWANTH KNETHKAR ".
Reply:http://www.bloodshed.net/devcpp.html
Reply:#include %26lt;iostream.h%26gt;
main()
{
for(;;)
{
cout %26lt;%26lt; "Hello World! ";
}}
is the way to write in C++..on visual basic you have the option to choose C++ as a language. you kinda have to play with it, but there are lots of web sites to get you started
In c#.net or VB.net, how do I create a window that contains windows?
Many programs have a master window and there are sub-windows like in photoshop. Using the 'Window' menu a user can switch between the two or more sub-windows. Do I start with a form as is given when a new project is created(with visual studio) and add them (if so, how?) or do I create seperate forms and call one from the other(if so, how?) I am looking for an overview of how it works. A book that shows this would be great!
In c#.net or VB.net, how do I create a window that contains windows?
I think you mean to use MDI, the Multiple-Document Interface. The link below will lead to C# and VB examples.
Reply:assumption :
frmStart : The first form which loads when the program is executed.
frmSearch : A form for searching like find/replace.
menuSearch : A menu item in frmstart which when clicked opens the frmsearch.
the code is as follows:
private sub OpenSearch ByVal sender As System.Object, ByVal e As System.EventArgs) Handles menuSearch.Click
Dim frmSearchChld As New frmSearch()
With frmSearchChld
.Owner = Me
.Show() // .showDialog()
End With
end sub
sp
In c#.net or VB.net, how do I create a window that contains windows?
I think you mean to use MDI, the Multiple-Document Interface. The link below will lead to C# and VB examples.
Reply:assumption :
frmStart : The first form which loads when the program is executed.
frmSearch : A form for searching like find/replace.
menuSearch : A menu item in frmstart which when clicked opens the frmsearch.
the code is as follows:
private sub OpenSearch ByVal sender As System.Object, ByVal e As System.EventArgs) Handles menuSearch.Click
Dim frmSearchChld As New frmSearch()
With frmSearchChld
.Owner = Me
.Show() // .showDialog()
End With
end sub
sp
Visual Basics.NET. Help me please.?
I am taking a course in Visual Basics. We are using microsft visual basic 6.0 I have been struggling with this course all semester. People say visual basics was easier and better than C++ but I like C++ better. Can someone please help me.
We have to make a program to do the following.As an IF statement
A program that accept admission
It should accept ranking from high school, score on admission test.
Admit only if
Ranking%26lt;=10% and testsocre%26gt;=70%
Ranking%26lt;=20% and test score %26gt;=80%
Ranking%26lt;=30% and test score%26gt;=90%
Else do not admit.
I dont have the software at home but this is what i did in class.
Dim Score As Integer
Dim Ranking As Integer
Dim Admit As String
Dim AdmissionDeclined As String
If Score %26gt;= 20 And Ranking %26lt;= 10 Then Admit() Else If Score %26gt;= 80 And Ranking %26lt;= 20 Then Admit() Else If Score %26gt;= 90 And Ranking %26lt;= 30 Then Admit() Else AdmissionDeclined()
End Sub. I dont have enough characters to print the whole code
Visual Basics.NET. Help me please.?
First of all your code has score %26gt;= 20 when I think you mean score %26gt;= 70. That is probably just a typo. Secondly, make sure you have elseif as one word and you need "end if" after the else. In VB you always have to end an if with an "end if" statement Other than that, it appears everything else should work.
Oh and to let you know, VB has its strengths and C++ has its strengths. You really can't say one is better than the other because they are designed with different ideas in mind. C++ is great for memory management and speed, VB is great for GUI and database front end design.
Hope this helps you and good luck with the course. Stick with it, VB can take you places.
Enjoy!
Reply:It looks like you're on your way. What is the specific problem you're having?
You need to create methods for Admit() and AdmissionDeclined()
We have to make a program to do the following.As an IF statement
A program that accept admission
It should accept ranking from high school, score on admission test.
Admit only if
Ranking%26lt;=10% and testsocre%26gt;=70%
Ranking%26lt;=20% and test score %26gt;=80%
Ranking%26lt;=30% and test score%26gt;=90%
Else do not admit.
I dont have the software at home but this is what i did in class.
Dim Score As Integer
Dim Ranking As Integer
Dim Admit As String
Dim AdmissionDeclined As String
If Score %26gt;= 20 And Ranking %26lt;= 10 Then Admit() Else If Score %26gt;= 80 And Ranking %26lt;= 20 Then Admit() Else If Score %26gt;= 90 And Ranking %26lt;= 30 Then Admit() Else AdmissionDeclined()
End Sub. I dont have enough characters to print the whole code
Visual Basics.NET. Help me please.?
First of all your code has score %26gt;= 20 when I think you mean score %26gt;= 70. That is probably just a typo. Secondly, make sure you have elseif as one word and you need "end if" after the else. In VB you always have to end an if with an "end if" statement Other than that, it appears everything else should work.
Oh and to let you know, VB has its strengths and C++ has its strengths. You really can't say one is better than the other because they are designed with different ideas in mind. C++ is great for memory management and speed, VB is great for GUI and database front end design.
Hope this helps you and good luck with the course. Stick with it, VB can take you places.
Enjoy!
Reply:It looks like you're on your way. What is the specific problem you're having?
You need to create methods for Admit() and AdmissionDeclined()
Subscribe to:
Posts (Atom)