How do i use directX in microsoft visual basic studio 2010 express ?

i am writing code to graph stock market prices using microsoft visual basic studio express
i want fast response (i do machine language) using directX
this is my problem
i have never used directX, and i have never used directX in visual basic studio
i followed a tutorial that went like this
  Reference: Microsoft.DirectX
             Microsoft.DirectX.Direct3D
             Microsoft.DirectX.Direct3DX
    Imports: Microsoft.DirectX
             Microsoft.DirectX.Direct3D
             Microsoft.DirectX.Direct3DX
    Declare: Private D3Ddev As Device = Nothing
             Private D3Dpp As PresentParameters = Nothing
             Private DP As DisplayMode = Nothing
i found the reference dll's at C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0
when i imported microsoft.directX.direct3DX i got error #1
namespace or type specified in the imports 'microsoft.directX.direct3DX' doesn't contain any public member or cannot be found...
the same error occurs wether i use direct3DX \1.0.2911.0 or \1.0.2902.0
when i built and ran, i got error #2
microsoft visual basic 2010 express is waiting for an operation to complete ...
it hangs and i have to soft reset ctrl-alt-del
error #3
when i reference
  Microsoft.DirectX
  Microsoft.DirectX.Direct3D and
  Microsoft.DirectX.Direct3DX
  from C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0,
all my declares work:
        D3Dpp = New PresentParameters()                             'Initialize
some stuff for the Presentation parameters
        D3Dpp.BackBufferFormat = DP.Format
        D3Dpp.BackBufferWidth = DP.Width
        D3Dpp.BackBufferHeight = DP.Height
        D3Dpp.SwapEffect = SwapEffect.Discard                       'There's flip, copy, and discard. Flip and Discard
are used most often.
        D3Dpp.PresentationInterval = PresentInterval.Immediate      'Present the scene immediately
but when i start debugging (f5), i get this error message:
mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information
i dont fully understand the visual studio process, but i think 'mixed mode' means run and debug. two seperate app's
i know this is a long question, but the forums don't answer it properly
i want it answered concisly. i am running windows 7 basic, and this is my question
can somebody give me a dozen lines of directX code that will work with my system, so that i can at least draw a line using directX 2D and 3D ?
thanks everybody :)

Hi,
Thank you for your post.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
Since your issue is related to DirectX, I suggest you consult on DirectX forum:
http://xboxforums.create.msdn.com/forums/ for better response.
Thanks,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Visual Web Developer 2010 Express and Oracle ODAC - Oracle data provider

    system - xp pro
    Microsoft Visual Web Developer 2010 Express and Oracle ODAC112021.
    I can't seem to get the ODAC to work correctly with the Web Developer Express. When putting in a gridview I only see the standard adapters. The one from Oracle does not appear. I have spent days trying to figure out why but no luck. No one else seems to have this problem. I do not see any errors when I installed the ODAC. I've followed a few tutorials.
    http://weblogs.asp.net/nannettethacker/archive/2010/09/17/installing-oracle-data-access-components-odac.aspx
    and
    http://www.smart-soft-nz.com/oracle-and-asp-dot-net.html
    I tried using the Windows adapters but they just don't seem to work. I can get results in the query builder but when I go to the next step in the wizard I get the constraints error. I've done all the research on that with no luck so I wanted to use the ODAC. This killing me! This really shouldn't be that hard. I've added the dll to the references but again it's just not an option. If anyone could give me a little direction that would be great!!!!!!!!!!!!!!!!!!!!!!
    Thank you
    John

    Dear Friends,
    Installing SP1 and updates to it solved the first issue. So the database now seems to be of type 2008 R2.
    Deleting some files solved the second issue.
    However, another issue remains.
    My most important projects were created with a version of VWDX 2010 that was downloaded from Microsoft and installed on July 3, 2012. This version of VWDX has now been lost, because my hard drive recently ceased to function and had to be replaced.
    On the new hard drive I have a version of VWDX 2010 that was downloaded yesterday (May 28, 2014). As indicated above, I also installed SP1 and related updates.
    When I load a project that was created in the version of VWDX 2010 that was installed almost two years ago and try to open the database connection, I get, in essence, the following error message:
    "The database C:\Users\...\Database.mdf cannot be opened, because it is version 661. This server supports version 655 and earlier. A downgrade path is not supported."
    So it seems that the original database version was 661, whereas the version downloaded yesterday is 655. It seems very strange that a version downloaded now should be earlier than a version downloaded two years ago. Does anyone have an explanation or a solution?
    Thank you all for your trouble, and best regards.
    Eric (orexin)
    P.S. The site from which I obtained VWDX yesterday was:
    www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-web-developer-express and the executive was called VWD2010SP1AzurePack.exe.

  • How do I open a pdf stored in a Microsoft Access database using Visual Basic studios 2012

    Currently I am unable to find a valid method of being able to open a pdf stored in a Microsoft Access database using Visual Basic studios 2012. I've tried displaying the entire database on a form, but when I do this all the other columns show up with
    the correct data besides the one containing the pdf's, it just displays <binary data> in each row down the column. I also tried another method with which you use the database as a dataset and can drag and drop the rows and columns into the form, which
    again works for all the other columns besides the one containing the pdf's but this time I'm unable to interact with the column  at all. 
    Not too sure if this is in the correct place, but any answers or help would be appreciated. Cheers.

    Alex,
    This forum is dedicated to Project and Project Server. You might get better response, if you post to a Visual Basic forum. Here are couple I could find. 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral%2Cvblanguage&filter=alltypes&sort=lastpostdesc
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Microsoft Forms and Microsoft Visual Basic while opening the Excel file

    Hello,
    I have issues with 2010 64 bit Office Pro Plus Excel. Whenever I open an Excel file (97-2003 worksheet) which has macros then I get below 2 errors in sequence.
    Please note that all macro settings are enabled and below are my system configs.
    Win 7 Ultimate 64 bit,
    MS Office Pro Plus 2010 64 bit with SP2.
    Googled all and tried but in vein and also note that I dont have any .exd files under ../forms to delete. Please help.
    Please note that for others with same system config/office versions and same 97-2003 worksheet it works so issues is only in my system.
    First Error
    Microsoft Forms
    Could not load an object because it is not available on this machine.
    Second Error
    Microsoft Visual Basic for Applications
    Compile error in hidden module:  MainUtilities2.
    This error commonly occurs when code is incompatible with the version, platform, or architecture of this application.  Click "Help" for information on how to correct this error.
    Thanks.

    Your macro's will not run in a Office 64 environment only in a 32bit environment. The 64bit environment has a whole different setup and macro's created in an earlier 32 bit environment will stop working.
    So if you want to use them in a 64 Office environment you have to rewrite the macro's.
    have a look here:
    http://msdn.microsoft.com/en-us/library/gg264421.aspx
    Maurice

  • Alternative of Microsoft visual basic power packs

    Hello there,
    Is there any alternate to Microsoft visual basic power packs??
    Now i am using visual basic power packs for displaying email details in proper manner like sender name,subject,date & time in one particular row. So is there any other option for doing such things apart from Microsoft visual basic power packs?? 
    Thank in advance.

    The AutoCad Tutorial in the below link says you can use Visual Studio Express
    Jesus Espiga. For 2010 Visual Studio for Visual Basic express version was called Visual Basic 2010 Express.
    Autodesk - My First Plug-in Training
    You don't provide a link to the Tutorial you are using which of course makes it difficult to know much about the issues you may be having.
    Maybe the Tutorial is using a different year of Visual Studio Express or Visual Studio in the video Tutorial. So of course the Visual Studio IDE (GUI, whatever) would appear different, the controls and other things may be different than the Visual Basic
    Express 2010 IDE.
    That doesn't mean Visual Basic 2010 Express can not do what you need to do. Mostly it means you are probably unfamiliar with Visual Basic programming and therefore do not understand how to implement the desired capabilities shown in the tutorial on one version
    of Visual Studio with the version of Visual Studio you are using.
    So unless you can explain in more detail why you are having issues I will guess it is because you can't follow along due to differences in the Visual Studio used in the tutorial and the Visual Basic 2010 Express you are using with regard to limited knowledge
    on your part of using Visual Basic 2010 Express in the first place. Therefore unable to transfer what is going on in the video to what you need to be doing in Visual Studio.
    La vida loca

  • How can I fix 'Can't Load Visual Basic for Applications' in Word 2011 for Mac?

    How can I fix 'Can't Load Visual Basic for Applications' in Word 2011 for Mac? I reinstalled Office after macbook was restored and now I've tried reinstalling twice but the same error turns up. There seems to be an associated error realted to the database, which send me to Database Utility. This turns up every time I open Word, then the VBA error message turns up 4 times, or if i click on Visual Basic Editor.

    in case it's useful to some other soul who searched Google in vain and found this page, I posted a fix that worked for me under https://discussions.apple.com/message/21732017

  • Microsoft Visual Basic Compiler - MAC and also IPHONE

    I work for a company that manufactures traffic calming products. Our software development for the sign has been in Microsoft Visual Basic which is then compiled for the windows environment.
    I need to locate a compiler that will hopefully compile it for use on the MAC and also possibly the IPHONE. Many of our customers are looking for a MAC version of the code. It is a simple program that uses bluetooth to communicate to the bluetooth modem in the sign, sending and receiving data and settings.
    Thank any of you that can help me with this project. Rich Garrett [email protected] 678-925-3555 www.radarsign.com

    xnav is right. RealBASIC is a good one to check out. I have a small amount of experience with it, as well as Visual Basic and Liberty BASIC. So, I don't really care for BASIC or any of its variants, but I think that if you to program BASIC on the Mac then RealBASIC is a good way to go. It's similar to Visual Basic, and provides a simple way to build basic (and maybe not-so-basic) apps on the Mac. I'm not sure if it supports iPhone development or not, but it's definitely worth looking into if you need to program BASIC on Mac, and it's the only BASIC-based development environment on the Mac that I know of (there could be more that I don't know of though).

  • Excel Error: Microsoft Visual Basic Application: "Compile error in hidden module: Module 11

    i am enable to creat XML file in excel when ever try to creal the XML file it shows  Microsoft Visual Basic : "Compile error in hidden module MODULE 11
    can any one help me to solve this issue

    Hi,
    For the error message, this problem may occur when the following conditions are true:     
    The Microsoft Office Startup folder or the Microsoft Excel Startup folder contains either or both of the following Adobe Acrobat PDFMaker add-in template files:
    Pdfmaker.dot
    Pdfmaker.xla
    Norton AntiVirus software is installed.
    No full installed
    Please try the following methods:
    Method 1: Download the latest version of the add-in for Adobe Acrobat 5.0
    Method 2: Move the files
    Method 3: Visit the Symantec Web site for Norton Antivirus information   and product updates
    Method 4: Repair from the CD disk.
    For more detail information, please refer to the following link:
    http://support.microsoft.com/kb/307410/en-us
    Regards,
    George Zhao
    TechNet Community Support

  • Visual Web Developern 2010 Express

    I am trying to install the Web Platform Installer 5.0 so that I can download Visual Web Developer 2010 Express. It does not seem to be installing. It evidently is running, at least the task Manager says it is. I let it run all night, Probably a total
    of 14hrs, but still not loaded. Any Help?

    As your issue is with WPI, I suggest that you visit the IIS forums and ask in the WPI forum here:
    http://forums.iis.net/1155.aspx/1?Web+Platform+Installer

  • How to make use of SAP NetWeaver Visual Composer in business

    Dear Experts,
        Can anyone help me the use of SAP Netweaver Visual Composer benefits and how it can be used to get the integerated business reult. How it helps the organisation to get benefited and how it differs from other tools.
    Regards
    Veeraraghavan.S

    Hi,
    There is loads of stuff out there on visual composer.  Have a look at this link:
    http://wiki.sdn.sap.com/wiki/display/VC/VisualComposer7.0
    VC is supposed to allow employees with limited technical skills created web based applications which can then be used in the portal.  You do need some technical knowledge but it is more easier than developing code. 
    Nick

  • How to use java applets inside visual basic

    hi everyone,
    i am new to programming specially java so please bear with me.
    having said that i am looking for a way to embed java applets in visual basic. so
    1) is it possibele?
    2) if yes(which i believe) then how?
    we are supposed to use VB but i hate it so looking for this way .
    any suggestions and help is whole-heartedly welcome.
    kindly help me.
    you can post ur replies here or mail me directly at my e-mail id
    [email protected]

    thanx
    i have 2 more queries.
    1) is this IE ACTIVE-X CONTROL present by default in VB or do i have to download some add-ons?
    2) how do i write a concurrent server in java . i mean is there any thing equivalent to the UNIX system's FORK()?what if i have to implement this in an applet?
    thanx again.

  • How to connect to oracle database from visual basic 2010 express edition

    I have installed visual basic 2010 express edition on windows xp. But visual basic 2010 express edition supports Microsoft sql server database file,Microsoft sql server compact 3.5, Microsoft access database file. I want to connect to oracle database from visual basic 2010 express edition. So what drivers are required and how to do connectivity?

    Hello,
    I wasn't clear on what you were using to make the connection. I had a look in Visual Studio 2010 (don't have express to test sorry).
    I think you mean the Data Sources available under the menu Data-> Datasources. this seems to match the description you give when I
    look at the list of datasource options.
    In here you can make ODBC connections via the Microsoft .net Data Provider .
    If you select ODBC as a datasource you can see listed the DSN's you created - for example I see 2 which use the Oracle ODBC driver.
    This assumes you installed an Oracle Client + the oracle version of the ODBC driver (comes with the oracle client).
    Once you created a server connection then you should see it in the server explorer.
    You can also download the Oracle Developer Tools for Visual Studio which is an add on for VS.
    ** I suspect this is only for VS 2010 and I didn't see that Express was supported.
    http://www.oracle.com/technetwork/developer-tools/visual-studio/overview/index-097110.html
    Let me know if that helps.
    John

  • Unable to install DM6 - asks for Microsoft Visual Basic+++2008 Redistributable

    Laptop Dell 1764 Win7Pro - DM5.
    Just got a 9900 Bold yesterday to replace my Tour 9630. 
    I attempted to install DM6 and received the same error message I received when I had tried to install DM6 a few months ago.   I click file 610_b034_multilanguage.exe and installation begins. Half way through installation a window appears saying that Microsoft Visual C++2008 Redistributable must be installed - Microsoft Visual C++2008 Redistributable - x64 9.0.30729 is listed in the Control Panel>Programs and Features as being installed.
    I noticed that Microsoft Visual C++2005 Redistributable (x-64 Version 8.0.56336 is also installed together with SQL Server 2005.
    I installed DM6 on my XP laptop without any problems.
    I need to install DM6 so that I can back up my 9900 and synchronize.
    Your recommendations would greatly be appreciated.
    Pierre
    <removed>
    EDIT: Personal Information such as e-mail is prohibited for your security. Please review User Guidelines  under section "Be careful."
    Solved!
    Go to Solution.

    It's a pity you didn't post the actual error message you receive...that always helps in searching for solutions...but, perhaps this one helps:
    KB03744 How to silently install BlackBerry Desktop Software
    It's not exact, but perhaps it has a better hint.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • SAP Connection R/3 using a SSO in Visual Basic

    Hello,  I have been trying to get an R/3 connection to SAP using VB.
    I log into SAP by getting a SSO ticket and running SAPGUI with the ticket.
    Is there a way to use R/3 and the SSO ticket to log in using VIsual Basic?
    Set R3 = CreateObject("SAP.Functions")
    R3.Connection.Client = "000"
    R3.Connection.User = "123456789"
    R3.Connection.Language = "EN"
    R3.Connection.System = "0"
    If R3.Connection.logon(0, True) <> True Then
        MsgBox "No connection to R/3 System"
        Exit Sub                                    
    End If
    I have a string from the .SAP file each time it is downloaded, I assume it is the single use password..
    [User]
    Name=123456789+
    at="MYSAPSSO2=thisIsAReallyLongStringOfCharectersEndingWIthA="
    Language=EN
    Thanks.

    solved it: SAPJCO was not included in the Windows Environment Path Variable. I included D:\usr\sap\yyyy\j2ee\j2ee_00\os_libs;D:\usr\sap\yyyy\j2ee\j2ee_00\cluster\server\additional-lib
    Bye
    Christoph

  • Using Crystal Reports in Visual Basic 2010

    I am trying to add several Crystal Reports to a new project and having a major problem.  Here's the situation. I created a new Visual Basic 2010 project with only one form, In visual Basic I added Crystal Reports.   I then imported a form that was created in Crystal Reports 8.5.
    There were no errors and the report with valid data was visible. I then tried to run...it wouldn't run and 31 errors appeared.
    Obviously I missed something. I have searched for a very simple basic tutorial and  either can't find one or didn't recognize one.
    Can anyone point me in the right direction.
    Milt

    Ok. So, you added the report to the project. Now we have to add the CR assemblies to the project, add the viewer (if need be) and fire it off. Simplest code would be:
    Public Sub New()
            ' This call is required by the designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
            CrystalReportViewer1.ReportSource = ("path to report")
        End Sub
    In this case you are using the viewer SDK to runt he report. The report will prompt for any logon parameters - but you can code these also. You can load the report via the engine as bellow. Again, the report will prompt. I prefer to use the engine as it is way more "extensible"...
    Public Sub New()
            ' This call is required by the designer.
            InitializeComponent()
            ' Add any initialization after the InitializeComponent() call.
            Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
            crReportDocument.Load("path to report")
            'Bind the report to the viewer
            CrystalReportViewer1.ReportSource = crReportDocument
        End Sub
    If you have a report added to the project (strongly typed) the code would be:
    CrystalReportViewer1.ReportSource = New myReport()
    For more details, I'd recommend looking at the sample app vbnet_win_simplepreviewreport.zip available from the following location:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples
    The developer help files are here:
    [SAP Crystal Reports .NET SDK Developer Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip]
    [SAP Crystal Reports .NET API Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_api_2010_en.zip]
    - Ludek

Maybe you are looking for