how can we open or run non executable file through visual basic programming code.?
344602
It's pretty easy to open a non-executable file programmatically using the "open" library routine (see VB help for syntax.)  You can't run something that is non-executable: writing an interpreter sort of makes it executable, and so invalidates the premise. ;)
306767
Make sure you are in a file-folder window, not a program window...
474548
All you should need to do is enter the full path to the exe just like you would do if you wanted to execute the program from the command line.\n\nc:&#92;yourFolder&#92;yourFile.exe
217589
I tried this myself after reading your question\nno the file will not be created again and the prosses will work normally as if the program is exist\n\nto try this your self you press CTRL+ALT+F1\ncat /dev/mouse > ~/test\n\nnow without moving your mouse press CTRL+ ALT+F2\nnano (or vim) ~/test\n(file is empty) move your mouse and try a again\nnano ~/test\nfile is filled with meaningless characters\nnow try this \nrm ~/test\n(move your mouse)\nls ~\n(the file will not be listed)\nPress CTRL+ALT+F1\nthe command is still working with no problems\n\nhave a fun
146916
Depends on your compiler and operating system. However, you can probably use the system() call from the C library (you can call that from a C++ program) or one of the exec functions. These exist on most Windows compilers and Linux/Unix too.\n\nhttp://www.gnu.org/software/libc/manual/html_node/Executing-a-File.html\n\nhttp://www.gnu.org/software/libc/manual/html_node/Running-a-Command.html#Running-a-Command\n\nNote that if you are not using gcc, your versions may be a little different than these.
1054101
PrintForm\n\nThis will print the window.\n\nOr....\n\nPrivate Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)\n\nPrivate Function CaptureScreen(ByVal myFile As String) As Boolean\nOn Error GoTo ErrorHandler\nCall keybd_event(vbKeySnapshot, 1, 0, 0)\nSavePicture Clipboard.GetData(vbCFBitmap), myFile\nCaptureScreen = True\nExit Function\nErrorHandler:\nMsgBox "Error Occured " & Err.Description\nEnd Function\n\nPrivate Sub Command1_Click()\nCall CaptureScreen("c:&#92;screencap.bmp")\nPicture1.Picture = LoadPicture("c:&#92;screencap.bmp")\nPrinter.PaintPicture Picture1, 0, 0, Picture1.Width, Picture1.Height, 0, 0, Picture1.Width, Picture1.Height, 0\nEnd Sub
750660
hi\n\ncreate one file with name of Autorun.inf and write folowing in it.\n\n[autorun]\nOPEN=setup.exe\n\nchange setup.exe with yout file that u want to run from cd as Autorun.\n\nsave it and burn into cd and run..\n\nyour cd becoem autorun cd..\n\nravi
853215
Use DirectX!!! the only way to go! \nThere are a lot of examples on msdn\nhttp://www.vbcode.com/\nhttp://www.a1vbcode.com/\nand other sites like that
528578
Right click the file and select 'open with' then the prog youu want to use - this can be set as the default for that file type.
678911
Check out the site at http://www.pscode.com - I don't do C++ but I use that site all the time for Visual BASIC stuff I work on.
268776
right clickt he exe file and clik properties and then compatibilty then clik runt his program in compadibilty made for and select winodows 95\nplz note that this doesnt always work
531568
music player with visual basic source code\n\nhttp://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=54014&lngWId=1
68175
...not sure why you would want to do that, but you could attach some sort of batch file or executable to the windows shell.  It's somewhat unstable but i've seen it done.
791942
First off, the program you designede in visual, are you running it in another visual basic program or are you importing it into another program.  Second, all you need to do to run the program by single key execution is to set the program to a macro.  For more detailed info go to the help section in visual (or press f1) and type in "macro".  Everything you need should be there.  You can send me a direct e-mail if you have any other issues the help won't help with (flyingrizzly@yahoo)
796435
Hello,\n\nWell, I havent used VB 6 for a long time (i using c++ now) but if I not mistaken it does write integer and infact any data type (including the ones you may have created yourself) to files...\n\nIt'd be better if you could post your code.\n\n[]s
15588
This may sound like a foolish question, but: are you sure you're entering a program executable file?  Just be sure you're using the right filename.\n\nAlso, depending on the program, you may need to type the entire file path to it.
299182
vc++ is much more tougher to handle than it's compatriot : visual basic. As the saying goes: "vb is fun, vc++ is shit hard work!!".\n\nok..\ni'll give u da steps to create 2 edit boxes and to get the sum : )\n\nhere we go:\n\n1) open ms vc++\n2) go to file ->new and under the projects tab, select mfcappwizard (exe) , enter name and choose location to save project\n3) now, the wizard pops up.\nStep 1 : select dialog based  (since the addition thing is fairly simple, we'll go for this)\n4) press next for step 2 and once again for step 3 (which means u r accepting the default values in those steps).\n\nFinally, u get a dialog showing the summary of the application.\n\nif u have come till here..gooood!! u have created a "skeletal application" .. and this, buddy , is the true essence of MFC programming.\n\nok.. now that u have created the skeleton application , its time i teach u how to put two text boxes and if ya click a button, the sum would be displayed in another :::\n\n\n\n\n* now, on ur left, u should see a "workspace" window. its one containing a list of files in your application.\n\n* in that, select the resources tab (tab is found at bottom of workspace window)\n\n* open the tree listing. in that u would find a "dialog" sub tree\n\n* open that. and u would find a "IDD_..." thing . double click on that, and presto, u would get a blank dialog.\n\n* now, that blank dialog would be accompanied by a toolbox if u dont see the toolbox, right click on the toolbar on top of vc++ window, choose toolbox.\n\n* if u see the toolbox, good. now, choose the edit box (text box) and draw three text boxes on the dialog. now, choose the button and draw one button on the dialog.\n\n* the text boxes would have the name IDC_EDIT1 , IDC_EDIT2 and IDC_EDIT3 and button would be IDC_BUTTON1(u can see the names by right-clickin on the component and choosing properties.)\n\n* ok, now , go to view- > class wizard (a very very very important tool in vc++)\n\n* move to "member variables" tab. u can see the components that u have added.( if u have not, just try flickering with the drop down dialogs that u see there). \n\n* now, double click on IDC_EDIT1 and another small window appears , asking u the variable name it would ve already displayed "m_" DONOT remove the "m_" jus add something to it like : "m_number1" . repeat same for the other two edit boxes and make sure u remember the variable names.\n\n* u have come till here?? awesome!! ; )\n\n* now close the class wizard window.\n* double click on tha button and.. u get a prompt something like onbuttonclick (somethin like dat) ..whatever comes, press ok. and presto, u go into the coding wonderland.\n\n* remember the varible names ?? goood. and u kno how to put an addition statement?? awesome!! . jus do that.. eg: m_number3=m_number1+m_number2;\n\n*CAUTION : while giving variable names , make sure u <<CHOOSE THE int TYPE>>\n\n* phew.. take a break and come back cos u r gonna watch ur creation come to life ; )\n\n*goto project->build xyz.exe\n\n* wait till it completes compilation and shows the sweet words "0 errors 0 warnings" on the bottom window of the screen (watch window).\n\n* press ctrl+f5 and voila.. u get ur own summing application created using MFC and with help of appwizard,classwizard and moi, ANAND ; )\n\n\n\n\nIF u have encountered any problem anywhere enroute to success, worry - not. Send me a message Y! id: anand_87123\ny! mail : anand_87123@yahoo.com\nput the subject line as vc++ - Y! answer\n\nok??\n\nP.S : if ya feel i have helped ya, i dont mind my answer being voted as the best answer by u!!\n\nand also, i can prescribe 2 books for ya :\n1) MFC programming by JEFF PROSISE and \n2) David J Kruglinski, Scott Wingo :: "Programming Microsoft Vc++ Fifth edition"\n\nthey are available for download from da net (illegal ofcourse ... ; ) ) try searching