Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

Nikhil Wason

@Nikhil Wason
About
Posts
14
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Programmatic saving of an existing excel file
    N Nikhil Wason

    Can you write some sample code to attach an object of Microsoft.Office.Interop.Excel.Application to an already existing excel.exe application?

    C# csharp com help question

  • Programmatic saving of an existing excel file
    N Nikhil Wason

    I want to use C# to save the changes made to an existing excel file. The path of the excel file is fixed and it can be assumed that the file is opened in an excel window from before. All I want to do is write a program that periodically saves whatever changes were made to the file (in the excel window) since it was last saved. I have tried sending the Ctrl-S windows message to excel and also tried playing around the Microsoft.Office.Interop.Excel namespace, but to no avail. Is there a way to do this that anyone is aware of? I am using Office 2007 but a solution for Office 2003 or 2002 will also be of help to me. -- Nikhil

    C# csharp com help question

  • Drawing in loop
    N Nikhil Wason

    HEY THNX BUDDY.. U ROCK :)

    C# help question graphics game-dev

  • Drawing in loop
    N Nikhil Wason

    Thanx michel but the thing is i only want to draw the board whenever the player makes a move not randomly so will worker thread be usefull then also? regards

    C# help question graphics game-dev

  • Drawing in loop
    N Nikhil Wason

    friends i m having problem in displaying the form in a loop: do { this.boardRenderer.DisplayBoard(gameBoard); }while() the DisplayBoard function draws on the form but when it is called in from a loop, the main form is not displayed until the processing of the loop is over (END OF GAME IN MY CASE :'( ) how can i make it display the form while processing other code?? PLZZZZ HELP!!

    C# help question graphics game-dev

  • Getting the number of packets received / sent
    N Nikhil Wason

    I wish to write a program to get the number of bytes/packets being received / sent over an NIC (standard ethernet card). Are there any inbuilt functions / libraries in the standard c/c++ library to this? If not, are there any external libraries to do so? Nikhil

    C / C++ / MFC c++ question

  • Error writing to program database
    N Nikhil Wason

    Sometimes while compiling projects i suddenly get this error: fatal error LNK1201: error writing to program database '\debug\.pdb'; check for insufficient disk space, invalid path, or insufficient privilege I cant even delete the debug folder till i close visual studio.net. Ultimately i have to close visual studio, open the folder, delete the debug folder, then restart visual studio.net, open my project and then recompile my project all over again. This causes a lot of problem and waste of time. Any solutions to this ??? Please help. Nikhil

    Visual Studio help csharp database visual-studio debugging

  • Passing parameters to CreateThread()
    N Nikhil Wason

    suppose i have a class as follows: class X { HANDLE hThread; public: X(); UINT ThreadProc(LPVOID lpVoid); }; now in the constructor X(), i call the function CreateThread() as follows: hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)ThreadProc,NULL,0,NULL); i get the following error: error C2440: 'type cast' : cannot convert from 'overloaded-function' to 'LPTHREAD_START_ROUTINE' Even if i do the following, i get the same error hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)(X::ThreadProc),NULL,0,NULL); I dont want to use a global function ThreadProc() because i want to access data members of the current object of the class X. So even using friend wont help in this case. Even passing of parameter to ThreadProc LPVOID parameter results in certain type incompatibilities. Any workarounds ?? Please Help.. Nikhil

    C / C++ / MFC help question

  • Controlling media playback using windows media sdk
    N Nikhil Wason

    I wish to control media playback in windows media player by changing songs according to certain conditions generated by my plugin. To change songs, i use the IWMPControls interface and call the function put_currentItem() under the wmppsTransitioning media event. But the problem i face when using this function is that the wmppsTransitioning event is recalled by media player in this process & the currently selected song in the playlist is the one that media player was supposed to play had i not called the put_currentItem() function (even though the song played is the one passed to the put_currentItem() function!!). As a result of this, the play count and other metadata tags are incremented at the end of the media not for the song being played but for the song that is selected by media player. This leads to a conflict in my plugin. Can any one pls help me with a workaround to override windows media events and completely govern the next media to be played without windows media player interfering in-between ?? Also it will be appreciated if anyone can help me out with changing media in a playlist without any interference from windows media Player. Nikhil

    C / C++ / MFC help question

  • Parallel Port Programming in Windows XP
    N Nikhil Wason

    I wish to control LEDs on a bread board through the parallel port using a c++/vc++ program made in windows xp. I tried doing the same thing on windows 98 where it worked but i guess windows xp does not give permissions to access the parallel port for programming. Is it really so?? If yes, then plz suggest a suitable alternative or workaround to this so that i can control LEDs by programming on windows xp. I'm also interested in knowing how to program the USB & serial ports. Can anyone help me out pls???:confused: Nikhil

    System Admin c++ help tutorial question

  • Deleting a character in a text file
    N Nikhil Wason

    i want to know how to delete a character in a text file. if i use '\b' or ascii 127(del), then i get some special characters in my file instead the characters getting deleted. Probably windows doesnt recoznise these characters as dos does. Is there any other way or any other character that can be used to delete charactes in a file either backwards or forwards ??? I use visual studio.net as my compiler. Pls hlp. Nikhil

    C / C++ / MFC csharp visual-studio tutorial question

  • Getting the Audio Stereo Mixer or Line In Input
    N Nikhil Wason

    I wanna make a standalone audio visualization. For that i would need the waveform or the amplitude of samples of the audio being played. Is there ne way in which i can get the waveform or the amplitudes of samples of the media playing on the computer through stereo mixer and/or line-in?? This is similar to the way sound recorder can record ne audio being played by any application on the computer. Pls hlp. -- Nikhil

    C / C++ / MFC question

  • Passing parameters to threads
    N Nikhil Wason

    I am having a problem in passing an integer as an agrument to a thread of the format: UINT threadname (LPVOID); I am passing 4 distinct values to 4 distinct threads using the same function as the thread operation. Whenever i typecast the address of the interger to LPVOID type, pass it an argument to CreateThread() & then re-typecast it to an integer in the thread function, i either get runtime errors or i get junk values. but never the original value of the integer that i wanted. Is there any special way of typecasting pointers in vc++.net?? I also tried out using the reinterpret_cast operator and also replacing the CreateThread() function by AfxBeginThread(). Although i dont get any runtime errors now, but the same value is passed to 2 threads occasionaly (Rememeber i want 4 distinct values to be passed to 4 distinct threads) & sometimes a completely strange no is passed. The value is repeated for only 1 thread, the others are ok. Plz help if any1 knows a workaround or solution to this. -- Nikhil

    C / C++ / MFC help csharp c++ question

  • Error in streaming media
    N Nikhil Wason

    I use Windows Media Player 10 for my media files. I also use media player for listening to & previewing of songs and videos on music.msn.com and movies.msn.com. Since a few days, i have all of a sudden started getting an error whenever i click on the play/preview button on music.msn.com or movies.msn.com for any song or video clip. The error states : Windows Media Player cannot play the file because the specified protocol is not supported. If you typed a URL in the Open URL dialog box, try using a different transport protocol (for example, "http:" or "rtsp:"). the error still persists .. i hv even tried re-installing media player but to no avail ... plz help me -- Nikhil

    System Admin help com tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups