banner



C++ Cannot Open For Writing

You must Sign In to use this message board.

General Re: Profiling - weird problem. Pin

27-Mar-02 10:05

Member moliate 27-Mar-02 10:05

Have you merged the .PBO file yet? Perhaps doing a 'prep /M filename' will fix it. Otherwise I don't know...

/moliate

Sign In·View Thread
General Status Bar Text Limit Pin

27-Mar-02 4:43

suss 27-Mar-02 4:43
Hi,

I think there is some kind of limit to the number of characters that can be displayed in a status bar. It seems to be 127 characters. I was wondering if there was any way of increasing this? It doesn't matter how wide I make the status bar, the text is always cut off at that limit!! Really frustrating.

Thanks in advance

(by the way, I know it's not my string variable that's cut off, 'cause I checked)

Rose | [Rose] MandyRose | [Rose]

Sign In·View Thread
General Re: Status Bar Text Limit Pin

Tomasz Sowinski 27-Mar-02 5:12

Member Tomasz Sowinski 27-Mar-02 5:12

From the MSDN docs for SB_SETTEXT:

"The text for each part is limited to 127 characters."

You may try to host a static control as a statusbar child.

Tomasz Sowinski -- http://www.shooltz.com

- It's for protection
- Protection from what? Zee Germans?

Sign In·View Thread
General Dialog question Pin

Rickard Andersson20 27-Mar-02 4:38

Member Rickard Andersson20 27-Mar-02 4:38
I have a dialog based app and I create a new dialog in the resource editor. In the main dialog. I put a button that will show the new created dialog, like this:

CTheDialogDlg dlg;
dlg.DoModal();

But now I want to press some more buttons on the main dialog or edit some edit controls... But it's not allowed... Hot make it possible!?

I've tried making it WS_CHILD and try making the parent window to be the desktop window instead of the main window. but it doesn't work... HELP!

------------------------------------
Rickard Andersson , Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!

------------------------------------

Sign In·View Thread
General Re: Dialog question Pin

Paul M Watt 27-Mar-02 4:50

mentor Paul M Watt 27-Mar-02 4:50

Your problem is that you are showing the dialog as as a modal dialog box. Modal dialog boxes require the focus until they are explicitly closed, a MEssageBox is another type of modal dialog box.

What you want is a modeless dialog box. You can make it appear by calling the Create method of you dialog rather than the DoModal method. When you want the dialog to disappear you can call ShowWindow to hide it, or you can detstroy the dialog when you no longer need it.

Sign In·View Thread
General Re: Dialog question Pin

Tomasz Sowinski 27-Mar-02 4:47

Member Tomasz Sowinski 27-Mar-02 4:47

You need to use CTheDialogDlg as modeless. When you call dlg.DoModal, main dialog becomes disabled until secondary dialog is closed.

Tomasz Sowinski -- http://www.shooltz.com

- It's for protection
- Protection from what? Zee Germans?

Sign In·View Thread
General Re: Dialog question Pin

Michael P Butler 27-Mar-02 4:54

Member Michael P Butler 27-Mar-02 4:54

DoModal creates a modal dialog, this gives the dialog control until it is closed. You'll need to create a modeless dialog using the Create method and ShowWindow. Have a search on MSDN for Modeless dialogs there will be lots of examples.

Michael Smile | :)

Sign In·View Thread
General fatal error LNK1168: cannot open x.dll for writing Pin

albean 27-Mar-02 4:33

Member albean 27-Mar-02 4:33
I'm writting a COM plug-in for a service. I'm able to register and unregister the dll with the service. Even after i unregister the dll I still get that error because the file is still in use. When I check with the service it reports that its not using my dll. I thought that the COM library knew when nothing was using a component and would release it.

I'm adding features and debugging my dll so I have to compile it often. I don't want to reboot my computer each time I want to comple the component. Is there a way to manually release this dll?

Sign In·View Thread
General Re: fatal error LNK1168: cannot open x.dll for writing Pin

Christian Graus 27-Mar-02 10:08

protector Christian Graus 27-Mar-02 10:08

Is it a COM+ app ? It could be getting pooled and need stopping in COM+

Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002

Sign In·View Thread
Question Re: fatal error LNK1168: cannot open x.dll for writing Pin

Aniruddha Loya 13-Sep-11 2:28

Member Aniruddha Loya 13-Sep-11 2:28

Did you find a solution to this?
I'm facing a similar problem working on creating ShellExtensions.
Thanks!
Sign In·View Thread
Answer Re: fatal error LNK1168: cannot open x.dll for writing Pin

Harold.Mei 4-Oct-17 16:56

Member Harold.Mei 4-Oct-17 16:56

Happened to me as well.

Attached the shell extension dll to SearchFilterHost.exe for debugging purpose, after the debugging finished I need to rebuild the dll but encountered the problem abovementioned.

Solution is to stop SearchFilterHost.exe in task manager afterwards.

Sign In·View Thread
General Associated Files Pin

Nick Parker 27-Mar-02 3:37

protector Nick Parker 27-Mar-02 3:37
Does anyone know of a method to return a list of files that a current executable is using? I will be doing this in C# but would like to get some input from anyone. Thanks in advance.

Nick Parker

Sign In·View Thread
General Re: Associated Files Pin

Tomasz Sowinski 27-Mar-02 3:44

Member Tomasz Sowinski 27-Mar-02 3:44

What do you mean by 'associated files'? File extensions associated with an application? Or files open by the app in given moment?

PS: it's forbidden to use words like 'C#' in this forum Smile | :)

Tomasz Sowinski -- http://www.shooltz.com

- It's for protection
- Protection from what? Zee Germans?

Sign In·View Thread
General Re: Associated Files Pin

Nick Parker 27-Mar-02 3:55

protector Nick Parker 27-Mar-02 3:55

Tomasz Sowinski wrote:
What do you mean by 'associated files'?

Any supporting files the executable requires to run.

Tomasz Sowinski wrote:
PS: it's forbidden to use words like 'C#' in this forum

In the big picture were all in the same boat aren't we. Smile | :)

Nick Parker

Sign In·View Thread
General Re: Associated Files Pin

Tomasz Sowinski 27-Mar-02 4:02

Member Tomasz Sowinski 27-Mar-02 4:02

Nick Parker wrote:
In the big picture were all in the same boat aren't we.

In this particular case, no Smile | :)

If you have unmanaged .exe - like the ones produced by VC6 - you can use depends.exe to check which .dlls program is explicitly linked to. However, program may load any .dlls at runtime with LoadLibrary and link to their functions with GetProcAddress.

Managed assemblies created by C# are totally different story.

Tomasz Sowinski -- http://www.shooltz.com

- It's for protection
- Protection from what? Zee Germans?

Sign In·View Thread
General Re: Associated Files Pin

Nick Parker 27-Mar-02 7:32

protector Nick Parker 27-Mar-02 7:32

Tomasz Sowinski wrote:
In this particular case, no

I guess I was looking at the Bigger picture, not just the application that I am going to be working on. I understand there are many million different ways to do things, especially when different languages are feasible for an operation, I guess it was more of a philosophical statement really.
Smile | :)

Nick Parker

Sign In·View Thread
General Re: Associated Files Pin

Carlos Antollini 27-Mar-02 3:46

Member Carlos Antollini 27-Mar-02 3:46

You need to use the depends utility. Is under Visual Studio Tools menu....

Best Regards

Carlos Antollini.
Sonork ID 100.10529 cantollini

Sign In·View Thread
General adding functions to submenus Pin

Rajveer 27-Mar-02 3:12

Member Rajveer 27-Mar-02 3:12
I noticed that when you make a new submenu for any of the menus, you can add a function for COMMAND or UPDATE_COMMAND_UI
What do these two things mean?
Sign In·View Thread
General Re: adding functions to submenus Pin

Tomasz Sowinski 27-Mar-02 3:30

Member Tomasz Sowinski 27-Mar-02 3:30

COMMAND handler is called when user clicks on the menu item - you put the real work there.

UPDATE_COMMAND_UI is called in response to WM_INITMENUPOPUP, just before displaying the menu. It gives you the opportunity to enable/disable/check/change the text of menu item.

If your menu item is always enabled, you don't need UPDATE_COMMAND_UI.

Tomasz Sowinski -- http://www.shooltz.com

- It's for protection
- Protection from what? Zee Germans?

Sign In·View Thread
General Re: adding functions to submenus Pin

-Dy 27-Mar-02 3:49

Member -Dy 27-Mar-02 3:49

Not sure if I've understood what your saying properly, but ON_COMMAND is where you tell your class what to do upon receiving that command message and ON_UPDATE_COMMAND is where you tell your class what to do when that menu needs to be updated (in your AFX_MSG_MAP part of your message map)

E.g.:

<br />   ON_COMMAND(ID_OPTIONS_FONT, OnOptionsFont)<br />   ON_UPDATE_COMMAND_UI(ID_OPTIONS_FONT, OnUpdateOptionsFont)

Heres the MSDN info:
ON_COMMAND, ON_UPDATE_COMMAND_UI

Dylan Kenneally
London,UK

Sign In·View Thread
General Explorer bars Pin

27-Mar-02 3:11

suss 27-Mar-02 3:11
General Display non modal dialog Pin

Stefan Stefanov 27-Mar-02 3:07

Member Stefan Stefanov 27-Mar-02 3:07
Hi,

Sorry about very stupid question.

How to show non modal dialog using MS VC++ 6.0.

Tranks,
Stefan

Sign In·View Thread
General Re: Display non modal dialog Pin

Joaquín M López Muñoz 27-Mar-02 3:16

Member Joaquín M López Muñoz 27-Mar-02 3:16

After CDialog::Create, call ShowWindow(SW_SHOW).

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

Sign In·View Thread
General Re: Display non modal dialog Pin

Stefan Stefanov 29-Mar-02 6:49

Member Stefan Stefanov 29-Mar-02 6:49

Thanks,

this is exactly what I do.

The problem is that modeless dialog stays always over its parent dialog, even when it is not focused. How to prevent this behaviour.

Thanks again
Stefan

Sign In·View Thread
General Re: Display non modal dialog Pin

Ravi Bhavnani 29-Mar-02 7:22

professional Ravi Bhavnani 29-Mar-02 7:22

To the best of my knowledge, you can't. This is standard behavior.

/ravi

"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com

Sign In·View Thread

C++ Cannot Open For Writing

Source: https://www.codeproject.com/Messages/141084/fatal-error-LNK1168-cannot-open-x-dll-for-writing.aspx

Posted by: marshallknowded.blogspot.com

0 Response to "C++ Cannot Open For Writing"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel