Ok I used the second one and it worked! Thanks a lot! Well... I am a beginner ...
Scozturk
Posts
-
convert BSTR to LPSTR? -
please helpAre you using API, MFC or net? Well... I am a beginner ...
-
convert BSTR to LPSTR?Hi. I am using a listview in a win32 api application... I want to set the text of the listview item. I do this: // LvItem.pszText= (LPSTR)_bstr_t(RsITEM(pSet,"FILE_NAME")); // it displays some junk characters... The listview works normally and there isnt any problem with the database nor with the data collection (made with RsITEM(pSet,"FILE_NAME") ) ... Thank you very much in advance for your answers... Well... I am a beginner ...
-
MSHTML Editing problemProblem solved... Well... I am a beginner ...
-
Obtaining an Application's FolderWell I dont use MFC I only know the API way so: you can get it like this: [code] char path[_MAX_PATH]; GetModuleFileName(GetModuleHandle(NULL), path, _MAX_PATH ); [/code] Path holds the full address of your exe like "C:\Program Files\Program\test.exe" just delete text.exe from it and its done... Well... I am a beginner ...
-
Mixing technologiesNormal winsock and raw winsock can work together... CSocket should work also... Well... I am a beginner ...
-
MSHTML Editing problemHello... I am trying to make a WYSIWYG editor and for that I am using the MSHTML control (in a win32 application). Well it works fine you can set properties of the text with the build in functions... Than I get a text range (with IHTMLTxtRange) (i can get the text range with no problem) and modify it using pasteHTML (i am doing that to apply font properties...) (i can do what I want but maybe there is some problem here). Well after that I cannot change anything with the built in functions... But my functions continue working... I am thinking about the selection range... Do I have to select the whole document and out it in a range in order to edit it with the built in functions? What may be the problem? Thank you very much in advance for your answers... Well... I am a beginner ...
-
UDP connectionsI'm not sure but google on raw sockets I think you will find some info... Well... I am a beginner ...
-
How could i develop a running-once applicationHi, One solution is to create a .bat file with deleting instructions. You will call the bat file at the end (before
return
). That work's generally. I hope this helps... Well... I am a beginner ... -
Edit Box messagesHi, One solution is to implement the
WM_CHANGE
message. Each time it is called you will check the edit boxes... Well... I am a beginner ... -
change variable valueThank you very much... I will try using the resource because putting the password in another file wont work for my program... Well... I am a beginner ...
-
change variable valueyes I could use something like that or just append the variable values at the end of the exe and read them from there but I am making an installer and I want to use that for the password... I don't really understand what the file offset is... is it just a position or something like a pointer? Well... I am a beginner ...
-
change variable valueHi! I have a variable declared like this in my application:
int i = 2;
What I want to do is to change the value from 2 to 3 (with the help of another exe application) without recompiling... Well I have the file offset which is 5030 but I don't know how to change it! Can someone help me? Thank you very much for your answers in advance! Well... I am a beginner ... -
GetMoniker ?Hi, I am inserting a flash control in my application (Win32 API application no MFC) and now I have to implement GetMoniker of IOleObject... How can I do that? Thank you very much in advance for your answers... Well... I am a beginner ...
-
Save binary files in Access DB (ADO)Hi! It may be a silly suggestion but why don't you read the file in binary mode and write everything in a field in the database? :~ Well... I am a beginner ...
-
cocreateinstance and windows media playerI have to use wmp.dll and WMPlayer.OCX.7 is just working fine thanks a lot! Well... I am a beginner ...
-
cocreateinstance and windows media player...ok I fixed the classid thing like this:
CLSID idMediaPlayer; HRESULT hr = ::CLSIDFromProgID (L"WMPlayer.OCX.1", &idMediaPlayer);
Well I was using windows media player 8 but I found that I jammed up the class-id... then I installed Windows Media Player 9... The error code is: "REGDB_E_CLASSNOTREG" ... I am not sure if I have to use "msdxm.ocx" for windows media player 9... Well... I am a beginner ... -
cocreateinstance and windows media playerI called OleInitialize... But I cant get the written error message... can someone help? Well... I am a beginner ...
-
cocreateinstance and windows media playerHi, I am trying to create an istance of the windows media player control but it returns an error... here is my code:
HRESULT hret; IUnknown *pUnknown; MediaPlayer::IMediaPlayerPtr pMediaPlayer = NULL; IConnectionPoint *pConnectionPoint; IConnectionPointContainer *pConnectionPointContainer; IOleInPlaceObject *pInPlaceObject; IOleObject *pObject; DWORD dwAdviseCookie; hret = CoCreateInstance(__uuidof(MediaPlayer::IMediaPlayerPtr), NULL, CLSCTX_ALL, pMediaPlayer.GetIID(), (void**)(&pMediaPlayer));
Thank you very much for your answers in advance... Well... I am a beginner ... -
Disable key combinationAs you said that it is possible using keyboard hooks (as you said there are lots of artciles on codeproject)... I think I have disabled the ctrl+alt+del in one my applications and instead of restarting it was calling my About Dialog... Well... I am a beginner ...