Topics
-
-
- Administrators
- 3 replies
- 3.3k views
I'm trying to declare the mouse_event API in C# 2005 Express. What's wrong? [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern void mouse_event(long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo); And I get the following error: Error 1 The type or namespace name 'DllImport' could not be found (are you missing a using directive or an assembly reference?)
Last reply by Wraith, -
-
-
- Leaders
- 12 replies
- 2.5k views
Hi all Just a query really, does anyone know of any programming languages that dont require distribution of runtime files? Which IDE is available to develop applications in this language? Im really interested to find something like this for the development of extremely lightweight applications. Cheers!
Last reply by FGump, -
-
- 1 reply
- 1.3k views
My directX dveice is set to be rendered into a panel control. This works fine as long I don't resize the panel. If I change the panels size it does give this error: "An unhandled exception of type 'System.NullReferenceException' occurred in microsoft.directx.direct3dx.dll Additional information: Object reference not set to an instance of an object". When executing the following code: sprite.Draw(dxTexture[VAR.iTag], textureSize, new Vector3(0, 0, 0), new Vector3(0,0,0), Color.White); Why on earth the sprite.draw stops working when I change the panels size?! The dxTexture[] have a texture (it's not null), the textureSize is correctly set...
Last reply by EFileTahi-A, -
- 0 replies
- 1.7k views
Hello! I am looking for some working examples of Frustum and Portal Culling in DotNet (Managed Direct3D), I however have not been able to construct the code on my own (never works for some reason) thus I have come to the conclusion I need some code some elses thats working (C# or VB.NET in paticular), I have looked through the Axiom3D code but no luck, the code seems to be too large and complex to learn out of. My ultimate goal is to build a Tomb Raider (The original series, 1-5) like engine which heavily relies on rooms linked together by portals. If somebody could please point me in the right direction, I will be eternally grateful :D (Remember: Managed …
Last reply by Razor89, -
-
- Leaders
- 5 replies
- 1.9k views
Does anyone know, if it is possible to build a backwards compatible assembly for .NET 1.1 or .NET 1.0 with VS 2005? Or is the only way to do this using the corresponding VS 2003 or VS 2002?
Last reply by snarfblam, -
-
-
- Leaders
- 3 replies
- 1.7k views
Hi all I am programming the zoom on by CAD system. The problem I have is when I what to zoom in on very small primitives. I have attached a small project to demonstrate, the program draws a horizontal line and scales it to fit with a 10 pixel border. If you change the m_startX and/or the m_endX to any value you want you will see that the line scales as expected When the line is 0.00059 in length or smaller it will not be drawn, for example if you had: m_startX = 0 m_endX = 0.0005 So my question whether I am using the Matrix transformation correctly? Or have I hit some sort of limit. I know that I am talking about very small numbers, but I will be …
Last reply by Iceplug, -
-
- 2 replies
- 1.2k views
I recently had an interview and one of the questions was... what is the process of designing a whole new .net app (vb.net/asp.net) from scratch? I answered it by saying first design, then this and that, etc... any thoughts? How do you design an asp.net/vb.net app from scratch??
Last reply by eramgarden, -
-
- Leaders
- 9 replies
- 1.5k views
Hey I just started my first C# program and I'd like to use some existing code from my old VB app. But I'm having little problems with the translation. I'm trying to translate this code to Visual C# 2005 Express. Private Function ScaleImage(ByVal SourceImage As Bitmap, ByVal MaxWidth As Integer, ByVal MaxHeight As Integer) As Bitmap Dim OriginalAspectRatio As Double = CDbl(MaxWidth / MaxHeight) Dim PicturesAspectRatio As Double = CDbl(SourceImage.Width / SourceImage.Height) Dim Picture_Width As Integer Dim Picture_Height As Integer If OriginalAspectRatio > PicturesAspectRatio Then 'Skaalataan korkeuden mukaan …
Last reply by Jaco, -
-
-
- Leaders
- Administrators
- 5 replies
- 1.7k views
I added another form to my system tray application and in that form the user can perform an action that requires the program to reload itself // Alert the user that the application will restart MessageBox.Show("Settings Saved. Click OK to restart the application", "Saved Settings", MessageBoxButtons.OK, MessageBoxIcon.Stop); // Shut down the current app instance Application.Exit(); // Restart the app System.Diagnostics.Process.Start(Application.ExecutablePath); Problem is, I can't get the icon to disappear since the application is being exited from a form other than the main one that loaded the icon. If I exit t…
Last reply by orbwave, -
-
- 1 reply
- 1.1k views
i have installed sql Server 2000 and im trying to connect to a database with the connection string string connString = @"server=FINTANSPC; uid=sa; pwd=; database=northwind"; it wont work, so i tried string connString = @"server=localhost; uid=sa; pwd=; database=northwind"; on the first it says "login failed for user 'sa'. Reason: not associated with a trusted sql server connection. on the second connection string i am told the sql server doesnt exist. how come i cant connect using either string? should the localhost not return the same as the other server name, as they are both the same? (by the way, the name of my pc on my little home network is FINTAN…
Last reply by fguihen, -
-
- *Experts*
- 5 replies
- 2.3k views
I want to write a program that edits a particuliar registry value every time the button is clicked. I have no ideal how to accomplish this task. I want to edit it using VB.NET any help given would be greatly appreiciated. The reason being is that there is a program that I have that used a partcular registry value as a default everytime it is opened. If I edit that registry value the default will change and it will save me a great deal of time with some of my tasks.
Last reply by TheWizardofInt, -
-
- 0 replies
- 1.5k views
I read the most interesting benchmark about the speed of string comparisons. It seems there is a HUGE different between the 3 different methods of string comparison. I've also included my summary/notes. I was shocked to find s1.Equals(s2) to be so inefficent in comparison. Source: http://dotnetjunkies.com/WebLog/chris.taylor/archive/2004/05/18/13927.aspx Google Cached Copy: http://216.239.39.104/search?q=cache:http://dotnetjunkies.com/WebLog/chris.taylor/archive/2004/05/18/13927.aspx using if (String.Equals("target", "source")) is 5x faster than using C#'s classic if (myString == "value")and it's 30x faster than VB.Net's if (myString = "value") Please …
Last reply by travisowens, -
-
- Leaders
- 3 replies
- 1.7k views
I only noticed this when I tryed my desert graphics which happen to be too bright. All my transparent images with keycolor transparency have this dark line around them. I guess its because of the antialias effect. How can I turn it off? http://img.photobucket.com/albums/v698/EFileTahi-A/Issue.jpg
Last reply by EFileTahi-A, -
-
-
- *Experts*
- Leaders
- 10 replies
- 2k views
how would i do this: if ctrl+1 is pressed how would i make it output text? like if i had notepad open and i pressed ctrl+1 it would output hello how would i do this?
Last reply by snarfblam, -
-
-
- Leaders
- 6 replies
- 1.9k views
Friends, We have created a media player and now we would want to add graphics (skins) to it. Our graphics artist has created images for the same. However, the corners of the player need to be curvy and the images he has supplied have curved edges. So, is there a way to make our form corners curved? I am trying AddClosedCurve but I did not find a lot of documentation on its usage. Pls let me know if you know how to do this :) Thank you, Praveen
Last reply by mskeel, -
-
-
- Administrators
- 2 replies
- 1.1k views
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer = 1 For i = 1 To 100000 Me.Label1.Text = Str(i) & " of 100000" Me.Refresh() Next End Sub When I click my Button1 and then click on another window, say Windows Explorer or Outlook, etc., my VB.NET form obviously loses focus. When I come back to it it doesn't refresh until the loop is completed. Is there anyway to either keep the VB.NET form modal; not just within my VB.NET app but throughout all of the windows that are up on my PC? Or is there a way to keep it running in the backgrou…
Last reply by woklet, -
-
- 2 replies
- 991 views
can someone recommand a good VB.Net? I've looked at amazon and found VB.Net Primer. Anyone else with a better book recommandation?
Last reply by samsmithnz, -
-
- Leaders
- 4 replies
- 4.3k views
I have a string: "Remote Company 10LC" How would I use Regex to extract the 10LC?
Last reply by samsmithnz, -
-
-
- Moderators
- 1 reply
- 1.1k views
Does anyone know when Visual Studio 2005 is supposed to be released?
Last reply by Robby, -
-
Ftp
by lothos12345- 1 reply
- 1.9k views
Can anyone give me a programming example of how to FTP files to a server in VB.NET. Any help given is greatly appreciated.
Last reply by ilya2,
-
Who's Online 0 Members, 0 Anonymous, 66 Guests (See full list)
- There are no registered users currently online