|
hiho@ll
i try to change the source of a browser helper object, which makes some strange things (like opening google, if i want to open a .js file )
my question (because i don't really know much about helper objects) how can i debug the object?
it is visible as an Add on in Inernet Explorer
and when i try to debug the bho visual studio .net asks which application holds the debug information
i tried using Internet Explorer, but didn't work
the helper object is a dll
maybe the question should be how to debug a dll?
thx@ll
|
|
|
|
|
Is Release method in _RecordsetPtr must be called in the following code. Only Close is not Enough ?
fun()
{
_RecordsetPtr rs;
//...
//...
rs.Close();
}
|
|
|
|
|
I am building the shell extension for 64 bit windows XP. While compiling the 32 bit shell extension code (working well on windows xp 32 bit) on visual studio.NET 2003 on 64 bit build environment getting the following errors:
myapp.obj : error LNK2001: unresolved external symbol _CLSID_BkgndCtxMenuExt
myapp.obj : error LNK2019: unresolved external symbol _LIBID_DIRBKGNDEXTLib referenced in function _DllMain@12
myapp.obj : error LNK2001: unresolved external symbol _IID_IBkgndCtxMenuExt
anybody please help me on this..
or is there any way to make 32 bit shell extension dll to work on 64 bit windows xp. on windows site its written that 32 shell extension will not work on 64 bit windows..
So what are the interfaces for shell extention in 64 bit windows XP.
thanks
|
|
|
|
|
hi guys! my name's candy..im having a little trouble with a school project of mine..i need to look for a "C programming using pointer" and i dont have any idea what it is..can somebody help me please..id really really really appreciate it if any of you guys can help me..thanks
|
|
|
|
|
Hello,
Using a search engine also does some magic... Anyway, this[^] should help.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Check here[^]
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Is your name really Candy, or did you just think that was a name that would get guys to help ? :P
Seriously, the web is full of help, there is at least one article on this site, and your textbooks should be loaded with info also. However, by all means if you read your textbook and you're stuck on *specific* things, feel free to ask, whatever your name is....
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
Is your name really Candy, or did you just think that was a name that would get guys to help ?
And no, I didn't answer because the name was Candy...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
yes my name is really Candy thanks for the help..i really appreciated it
|
|
|
|
|
thank you so much guys! i really appreciated all the help!! by the way..no i did not use the name Candy so that i could get guys to help me because my name is really Candy..tnx!
|
|
|
|
|
How to remove close button from window?I just want maximize and minimize buttons on window.if it is not possible to remove close button can i make it disable?
I have tried it using WS_MAXIMIZEBOX and WS_MINIMIZEBOX .But it is not working.
|
|
|
|
|
Hello,
I don't think that there is an easy way to remove the close button, since it's part of the system menu. You can use GetSystemMenu() to disable it..
You can also remove the entire title bar.
But please tell me why you want to remove the close button? Users will be really annoyed by this!
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Try this: GetSystemMenu(FALSE)->EnableMenuItem(SC_CLOSE, FALSE);
|
|
|
|
|
Hi,
I've written a windows service to parse files.It uses the FileSystemWatcher class in C# to sniff a folder for particular type of files. But when the files were being processed, i repeatedly get the error "The process cannot access the file "AAA" because it is being used by another process". To overcome this problem, i added the following. lines of code
<br />
<br />
public bool ParseEnvFile(string strFilePath)<br />
{<br />
try<br />
{<br />
using(FileStream fs = new FileStream(strFilePath, FileMode.Open, FileAccess.Read, FileShare.Read))<br />
{<br />
fs.Close();<br />
m_nReadAttempts = 0;<br />
}<br />
}<br />
catch(IOException ex)<br />
{<br />
if(m_nReadAttempts < 3)<br />
{<br />
Thread.Sleep(2000);<br />
m_nReadAttempts++;<br />
return ParseEnvFile(strFilePath);<br />
}<br />
else<br />
{<br />
throw ex;<br />
}<br />
}<br />
.....<br />
}<br />
But even this did not solve the problem. The exception still kept coming, though less frequently.
So I was forced to add a Timer event(runs every 5 mins) that would pick up all the files that were left over because of the exception.
Now, my problem is this:
When a file gets created in the folder, sometimes both the OnFileCreated event and the timer event try to access the file at the same time. Within my
service, I'm required to open the file in write mode and update some contents. I find that at times the file that gets created ends up as a 0KB file (Note: when it initially got created the file had some content in it)!!!!
Any ideas on why this happens?
Thanks for any help in resolving this problem.
|
|
|
|
|
hiho@ll
i'm using Visual Studio .Net
1. i have compiled/runned/debugged many "self-made" projects and some projects from codeproject.com
2. i got the source of a programm which i want to debug, which seems to be programmed using visual studio 6.0
3. if i try to debug the prog i get the following error:
"
Unable to start debugging.
Unable to start program "c:\program files\internet explorer\iexplore.exe"
Das System kann die angegebene Datei nicht finden.
"
4. it seems that .net tries to debug using iexplore.exe in program files folder
but my iexplore.exe is in programme\Internet Explorer\...
question: how can i change the debug options for this project that .Net knows that iexplore.exe is not in program files\ but in programme\ folder?
thx@ll
|
|
|
|
|
Hi,
I have a project built on winsock2, it listens to a particular port and responds to client requests. Its a customized Server for our needs.
I got to port it to DLL and invoke this in VB. How do I do this?
Any suggestions?
thanks in advance.
Hemo
|
|
|
|
|
|
Respecte All
Regards!
I am a new one to VC++ and learning phase.
I haev a problem
" i loaded a bitmap on a bialogbox but when i minimiz the Runtime window and then when i maximize the Runtime window then the Bitmap is not here on the runtime window.
I dont understand what's the problem.
Kindly guide me.
Bset Wishes
David
david
|
|
|
|
|
Where did you paint the bitmap onto the dialog ? You need to do it in either OnEraseBackground, or OnPaint.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thanks Sir
I am loading Bit Map directly on Dialog and that's why I think problem are coming
"but how i do it on OnPaint?"
Best wishes
David
david
|
|
|
|
|
Load the Bitmap into a Bitmap as a member variable in the class, override the OnPaint method of the class, and draw it there.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi All,
I have developed an MFC application with 2 views & a dialog window,all of which are dockable.So it looks more like when we open our microsoft Vc++ application.
The messaging system was taken care by a collegue of mine,who used "RunModalLoop" function for handling windows messages. Thats why this post.
My dialog window contains a Grid control.When I make a change in one of the cells in the grid & go & hit any of the toolbar buttons or menu items,the after edit event of the grid is not getting called. when I click on any of the views,the afteredit event is getting called,which is what I need.
What could be reason that the "AfterEdit" event is not getting called(when Hit on toolbar buttons & Menu Items).Does this has anything to do with "ModalLoop" calls.
Thanks for any help...
|
|
|
|
|
Hi,
My GUI is required to call a code that is a console application. The progress is displayed in the console. My GUI button calls this code fine and data is written correctly. The problem is I don't see the console from the button call and the user has no idea when the routine has completed. Would this be something to do with CreateProcess()? I know that this function can be used to call applications but what about subroutines?
Thanks.
Kash
|
|
|
|
|
Using CreateProcess() is the correct method. However, I would make the console window hidden, and capture the text that is written to it in my GUI window. See here and here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I would like to toggle sound in my program via a Menu item.
I have included a Menu option and event as follows, but how can I either set the Menu text 'checked' or change it to read:
Sound On or Sound Off .
void CExampleDlg::OnSystemSound()
{
if(g_bSound)
{
g_bSound = false;
SetDlgItemText(ID_SYSTEM_SOUND, "Sound Off");
}
else
{
g_bSound = true;
SetDlgItemText(ID_SYSTEM_SOUND, "Sound On");
}
}
Where ID_SYSTEM_SOUND is the Menu item. Can you declare a member variable for this Menu item? I saw no options in the Class Wizard.
But the Menu always displays the default text (Sound On); i.e. never changes.
|
|
|
|