Why after referenced dll files to my project they are not on my release directory when i build the project ?

This is a screenshot of my visual studio csharp the References and properties part of the dll's:
You can see on the right the 3 problem files are the directx dll files.
When my brother is running the program he get exception say one or more of the dll files is not found.
I sent him the 3 dll files he tried to put them from where he was running the program he also tried to put them at the directory they are in my place: C:\Temp\radarscan\dlls\DLL'S\Microsoft.DirectX.DLL
He created this directory and put them there but it didn't help.
I was sure once i referenced the dll files they are in my program no need to have them. And at least to have them in the directory where you running the program from but it's not working.
What i want is that my brother and anyone else that will run the program will not need the dll files on his pc and if he does need them so to have them in the directory where you are running the program from will be enough. How can i solve it ?

Still not working. Tried Samir solution but same problem my brother on his computer getting exception:
This is the code the line where the exception happen 142:
private void ScanClouds_Load(object sender, EventArgs e)
Boolean bl = InitializeDirectX();
if (bl == false)
MessageBox.Show("Error initializing directX!");
Application.Exit();
And in the method init:
private Boolean InitializeDirectX()
DispMode = Manager.Adapters[Manager.Adapters.Default.Adapter].CurrentDisplayMode;
D3Dpp = new PresentParameters();
D3Dpp.BackBufferFormat = DispMode.Format;
D3Dpp.PresentFlag = PresentFlag.LockableBackBuffer;
D3Dpp.SwapEffect = SwapEffect.Discard;
D3Dpp.PresentationInterval = PresentInterval.One; //wait for vertical sync. Synchronizes the painting with
//monitor refresh rate for smoooth animation
D3Dpp.Windowed = true; //the application has borders
try
D3Ddev = new Device(Manager.Adapters.Default.Adapter, DeviceType.Hardware, pictureBox1.Handle,
CreateFlags.SoftwareVertexProcessing, D3Dpp);
D3Ddev.VertexFormat = CustomVertex.PositionColored.Format;
D3Ddev.RenderState.Lighting = false;
D3Ddev.RenderState.CullMode = Cull.CounterClockwise;
//load imagesBmp to panelTexture
//panelTexture = Texture.FromBitmap(D3Ddev, imagesBmp, Usage.Dynamic, Pool.Default)
backTexture = TextureLoader.FromStream(D3Ddev, mymem);
//scannerTexture = TextureLoader.FromFile(D3Ddev, @"D:\Buttons\Radar\radar.png");
scannedCloudsTexture = new Texture(D3Ddev, 512, 512, 1, Usage.Dynamic, Format.A8R8G8B8, Pool.Default);
//sprite is used to draw the texture
D3Dsprite = new Sprite(D3Ddev);
return true;
catch
return false;
The 3 dll files are: Microsoft.DirectX.Direct3D.DLL, Microsoft.DirectX.Direct3DX.DLL, Microsoft.DirectX.DLL
The question is why he is getting this exception ? Realy it dosent see/find the dll files ? Or maybe his machine not supporting this directx files ? Strange.
Another thing when i put my mouse on the hard disk on the dll files i see a baloon tip say the:
File description: Microsoft Managed Direct3D Debug 
Maybe the problem is that the dll files of the directx belong to the debug directory but i make my program to be build in the release directory ? 
In any case i can't find any solution yet. This is the exception message:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.DirectX.Direct3DX.dll' or one of its dependencies. The specified module could not be found.
File name: 'Microsoft.DirectX.Direct3DX.dll'
   at mws.ScanningClouds.InitializeDirectX()
   at mws.ScanningClouds.ScanClouds_Load(Object sender, EventArgs e) in d:\C-Sharp\Download File\Downloading-File-Project-Version-012\Downloading File\ScanningClouds.cs:line 142
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Similar Messages

  • Macbook pro not displaying music library: What do I need to do to show music files in Library? They are not showing up.

    macbook pro not displaying music library: What do I need to do to show music files in Library? They are not showing up.

    If you click View, Show Sidebar you will see the other libraries under Shared in the left hand column. Click on the Library you want and you can expand it to select Music, Movies etc. Select whatever items you want and click import if you want to move them to your Library.
    You will have to have all computers authorised with the relevant Apple ID's
    Store  >  Authorise this computer...
    This is separate from the Home Sharing username and password and is to allow playing of DRM Movies, TV shows etc from the other computer.
    If both Computers use the same apple id this step is not required.

  • I recently upgraded from Leopard to Snow Leopard and I noticed that I have more capacity available on the Macintosh HD. I checked my files and applications and they are still on my computer. Can capacity on the HD change after an OS upgrade?

    I recently upgraded from Leopard to Snow Leopard on my MacBook and I noticed that I have more capacity on the Macintosh HD than before the upgrade. I checked my files and applications and they are still on my computer and nothing appears to be missing. Before the upgrade I had around 111 GB capacity with around 10.50 GB available on the Mac HD but now after the upgrade I have 119 GB capacity and 20.92 GB available. Can capacity on the HD change after an OS upgrade?

    No, but the upgrade removed unneeded PowerPC code and changed the way free space is determined.
    (72071)

  • After downloading updates for apps to PC they are not syncing over to phone.

    Hi, I have noticed today that if  I download app updates to my PC for my iphone 4 or ipad 3, they are not updating on the devices when syncing.
    Running latest iOS on devices and using Itunes 11.0.1.12
    Have seen on the app page on PC, you can select each app to update, but can it be done automatically ?

    same thing is with iphone 5. yesterday i downloaded the last updates and now cant sync the music files.

  • Restrict employees from charging time to projects they are not assigned to

    Can anyone help me on how tr restrict the employees from charging time to project networks that they are not assigned to?
    I have assigned the resource to the project network and can see that in the CAT2 worklist but I am not able to restrict employees from charging time agains projects that they are no assigned to.

    You have to validate the data in CATS Userexit.IMG - Cross application components - Time sheet - Customer specific modifications - Create SAP enhancements for the time sheet. Here is a short overview on what they are called and what they do.
    CATS0001 (Set up worklist): This one defines a worklist in the upper part of the CATS screen
    CATS0002 (Supplement recorded data): Here you can add values to customer defined additional fields or even modify the data entered by the user
    CATS0003 (Validate recorded data): This one is to check entries for whatsoever
    CATS0004 (Deactivate functions on the interface): CATS got a lot of buttons. Here you can get rid of the ones you don't need.
    CATS0005 (Customer field enhancements): You can add fields to CI_CATSDB here to later on use to display or enter additional data
    CATS0006 (Validate entire time sheet): Mainly serves to validate the hours entered if you don't use HR
    CATS0007 (Subscreen on Initial screen): Customer popup, defines data valid for the entire time sheet(row) 
    CATS0008 (Determine recipients for the approval workflow): You can connect CATS to a standard workflow so that superiors can approve times entered before they are transferred (HR, CO, PS...)
    CATS0009 (User-Defined Text Fields in the Data Entry Section): You got two 40 character text fields in the data entry part you can fill with this exit - display only
    CATS0010 (Display User-Defined Fields in the Worklist): Same as above for the worklist
    CATS0011 (Customer-Defined Functions): Add your own functions to the menu
    CATS0012 (Customer Subscreen): Define CATS header
    CATP0001 (Determine Target Hours): Define your own target hours

  • After Restoring/Backup File System XI Java Instances are not up!

    Hello all,
    We are facing problem in restoring the SAP XI System, after taking backup of the system the java instances in SAP XI System are not starting again. ABAP connections are fine.
    Can anyone provide suggestions/solutions in order to restore the XI System back.
    The system information is as follows.
    System Component: SAP NetWeaver 2004s, PI 7.0
    Operating System: SunOS 5.9, SunOS 5.10
    Database: ORACLE 9.2.0.
    Regards,
    Ketan Patel

    I would correct Oracle version is 10.2.0
    I would also like to reframe my problem.
    XI server(both abap and Web) was working fine. Every weekend we take full backup(file system+DB)(UFS) of server. After taking backup server got up and we were able to login through abap but java web page was not openning. We did some troubleshooting it didn't work and finaly we restored the backup and somehow it worked. Next week after backup again same problem arose. We again restored latest backup but this time problem still exists.
    Regards,
    Ketan

  • HT201272 I have several long classical music downloads that do not finish or skip after a minute to the next track. The iTunes store recognizes these as successful downloads.  They are not, but there is no way to complete the downloads now.  Or is there?

    Using ITunes support was useless.  The support help says that they can be downloaded if I go to the store again.  But the store says that they are downloaded and will not download them. It will only allow me to delete them or more correctly "hide" them.
    There are issues with downloads taken on two separate computers.
    Another question is why do all of the earlier Classical downloads, made five or so year ago or more, cut the very ends of each track of Classical music short and cue up the next track too quickly?

    Welcome to the Apple Community.
    Try deleting the problematic tune (electing to remove original file if/when prompted) and then re-downloading the file from the iTunes store.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option at the bottom of the screen of the iTunes app on your iOS device.
    If the problem re-occurs, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History using your computer.

  • I'm unable to commbine pdf's files?...they are not password protected and they are adobe files

    Any idea?

    Hi tquinn24
    Are you using Acrobat ?
    If Yes, Please Refer : http://www.adobe.com/in/products/acrobat/merge-pdf-files.html
    Or provide more details ...

  • Why does the menu look grayed out? ("File, Edit, View, History" etc) It makes them look like they are not going to work. They don't turn black if I click on them either.

    Normally, at least in most Windows programs, and I think other OSes too, items that can be used are black, and items in gray are inactive so that they are not available. It's disconcerting to see the menu in gray, even though they work.

    Hi Melaniefromnorth saanich,
    Take a look at the Photos User Manual below.  Is it possible you were deleting photos from an album and not from your library?
    Delete photos and video - Photos Help
    https://help.apple.com/photos/mac/1.0/index.html#/pht3bfab2f96
    Delete photos and videos
    Do one of the following:
    Delete a photo from an album, but not from your library: Select the items you want to delete, then press Delete.
    Delete a photo from a moment (placing it in the Recently Deleted album): Select the items you want to delete, press Delete, then click Delete.
    Delete a photo from a moment or album (placing it in the Recently Deleted album): Select the items you want to delete, then press Command-Delete.
    Deleted photos and video aren’t immediately removed from your library; they’re placed in the Recently Deleted album, where they remain for the number of days shown, and then are deleted. You can recover the items before that period of time (see the next task). If you have iCloud Photo Library turned on, the photos may remain in iCloud up to 40 days and then are removed from all your devices that use iCloud Photo Library. If you’re not using iCloud Photo Library, your deleted photos are removed from your Mac only.
    Restore recently deleted items
    Deleted items remain in the Recently Deleted album for the number of days shown, and then are deleted permanently. You can view recently deleted items and restore them back into your Photos library.
    Choose File > Show Recently Deleted.
    Select the photos you want to restore.
    Click Recover.
    To delete recently deleted items immediately, select the items, then click Delete.
    If you use Time Machine to back up your computer, you may be able to recover items after they are deleted permanently from your Mac or iCloud.
    For more information on using Time Machine, see Restore a Photos library from a Time Machine backup.
    Hope that helps,
    - Judy

  • About Final Cut ProX: why a red line appears at the top o a file imported into a New Event? then when I restarted the Project that files comes as "Missed files" How can i fix it?

    About Final Cut ProX: why a red line appears at the top o a file imported into a New Event? then when I restarted the Project that files comes as "Missed files" How can i fix it? Thank you very much.

    Where are you importing from – a camera or computer? If you are optimizing at import, make sure the background processes are completed. (Command-9)
    Russ

  • I imported an hour of video into iMovie HD and cut it down to a 33 sec clip, and emptied the trash.  When I save the project, the file size is 20Gb.  How can I save just the 33 sec clip?

    I imported an hour of video into iMovie HD and cut it down to a 33 sec clip, and emptied the trash.  When I save the project, the file size is 20Gb.  How can I save just the 33 sec clip?

    Non-destructive editing is an important feature of iMovie HD 6.
    iMovie preserves the entire copy of every clip you place into your movie in case you change your mind at a later stage.
    So, if you have cut out one minute from a 45 minute clip, iMovie will have stored two complete copies of that clip. This is why is helps to set import as 3-5 minute clips rather than one huge chunk. As DV runs at 13GB per hour your project files can get very big.
    One workaround is to complete the editing of a section of the movie, then export that to Quicktime: highlight the clip/s, choose Share-Quicktime, turn on Share selected clips only, and choose Full Quality from the pop-ip menu.
    Once you have saved the stand-alone clip to your hard drive, you can re-import it into your project using the File/Import command, and delete the original long clip/s from the project.

  • Hello, failing miserably here,  cant import nef files from aperture 3.1.2 to iphone 4.  I am syncing with the projects and smart albums and I am only able to sync the jogs and psd's   Anyone out there to aid this frustrated photographer??

    hello, failing miserably here,  cant import nef files from aperture 3.1.2 to iphone 4.  I am syncing with the projects and smart albums and I am only able to sync the jogs and psd's   Anyone out there to aid this frustrated photographer??

    See my reply to a later simplified version of your question. I don't think that either iPhone or iPad recognize RAW files such as NEFs. And the iPhone is not designed to be a mass storage device like a portable flash or portabel hard drive for temporary storage of files, if that's what you're after.  As I mentioned in my previous reply, I have an iPad and have been experimenting with it as a tool for photography, hoping that it would be a nice travel tool for backing up and viewing photos from my Nikon dslr. But both the iPad and iPhone just are not set up to do that well. Both show photos nicely, but organization of photos is very frustrating since you can't create albums on the iPhone or iPad, but only back on your sync computer. (There is one very powerful photo organization app called SortShots, but you import photos to it and it organizes and stores the images wtihin the app not using the native photo app. It doesn't work with NEFs either.) I don't know of any RAW processing software for either device.

  • Why can't I delete mp3 files from my Trash?  They are not locked.

    Why can't I delete mp3 files from my Trash? They are not locked.  I compressed them into a zip file and then couldn't delete that file either.  I've restored them and tried deleting again but no luck.  Can anybody please help?  iOS 10.8.5

    You can't empty the Trash or move a file to the Trash
    Visit The XLab FAQs and read the FAQ on solving Trash issues. You can also try using Trash It! 5.1 to fix the problem. Or you can try this:
    Open the Terminal in the Utilities folder and paste the following at the prompt:
         sudo rm -Rf ~/.Trash/*
    Press RETURN. Enter your admin password when prompted. It will not echo to the screen. Press RETURN again.

  • After restoration of files via time capsule my status changed to "Guest" and I can't find the pass word for changing it back to Registered user. Any Help?

    after restoration of files via time capsule my status changed to "Guest" and I can't find the pass word for changing it back to Registered user. Any Help?

    Hey mate I had this same problem exept instead of my recording disappearing my Chorus that went for 8 bars extended out to 20 bars lol and I used auto tune on it and it sounds like t-pain on a very bad day so it sounds like it does a few things when it comes up that error

  • Why is my audio out of sync when I reopen the project?

    Hi,
    Newbie question:
    I've synced my audio and video in the timeline, and linked everything, saved, etc, but when I reopen the project the next time I work on it, the audio is off again by a few frames.
    I can't figure out why this is happening. What step(s) am I missing?

    These are the details of my audio recording

Maybe you are looking for