Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo,

ich hab hier einen Dialog auf dem ich einen Button erstellt habe mit follgender ID = ID_HELP. Wenn ich mein Programm ausführe und den Button betätige, dann öffnet er mir natürlich eine leere Onlinehilfe. Wo trag ich ein, dass er meine und nicht seine leere Onlinehilfe öffnen soll?

Wäre für jeden Tipp dankbar,

Gruß Kitty

Hi Klotzkopp,

ja spreche von Windows und MFC. Dachte es genügt, wenn ich es im Titel so erwähne

Sorry, den Titel hatte ich gar nicht so genau angesehen. :hells:

macht doch nix ;)

Hast du eine .chm oder ein .hlp?

habe eine .chm-Datei (mit hilfe von HTML Help Workshop erstellt)

Wie heißt die Datei und wo liegt sie?

Der Pfad genau willst wahrscheinlich gar nicht wissen. :confused: Die Datei liegt in einem anderen Verzeichnis als mein Programm. Habe meine Datei nie auswählen können. Seit Anfang an wählt er immer seine leere Onlinehilfe aus.

Hast du m_pszHelpFilePath der App-Klasse geändert?

Wußte nicht, dass ich's ändern muss. Wo finde ich die Variable?

Danke, für deine Hilfe!! :e@sy

Wußte nicht, dass ich's ändern muss. Wo finde ich die Variable?

Musst du, wenn die Hilfedatei nicht im selben Verzeichnis wie die Exe steht. m_pszHelpFilePath ist eine Membervariable von CWinApp. In jeder MFC-Anwendung hast du eine von CWinApp abgeleitete Klasse, von der eine globale Instanz angelegt wird. Am besten setzt du den Wert in der InitInstance-Methode.

ach sooo.... bin wieder ein bisschen schlauer :cool:

werde es gleich testen und ausprobieren.

nochmals vielen dank!

hasch mir einige nerven erspart! :)

geht doch noch nicht ...

wenn ich mein Programm ausführe und auf den Button klicke, meckert er mir an, dass die Datei keine Windows-Hilfe Datei ist. Er erkennt mein .chm-Format wahrscheinlich nicht. In MSDN als Bsp. wird auch .hlp benutzt. Kann es daran liegen, dass er es nicht öffnen mag?

Mein Problem ist, dass ich das .chm-Format einbinden muss. Also auf .hlp könnte ich nicht ausweichen!

Hat nicht geklappt, er kenn die Methode nicht.

Hab jetzt durch Glück das hier:

// Executable path -- module path

	HMODULE module = GetModuleHandle(0);

	char modulePath[1000];					

	GetModuleFileName ( module, modulePath, 1000 );

	string s1 = modulePath;

	int pos =s1.find("exe");

	s1.replace(pos,3,"chm");

	//String tmp = AfxGetAppName();

	//string tmp = AfxGetAppName();

	//String fileName = getDirectory(modulePath);

	//string fileName = getDirectory(modulePath);

	//fileName << tmp << ".chm";

	const char *S1 = s1.c_str();

	//CWnd *pWnd; 

	//pWnd = GetDesktopWindow();  


	HWND hwnd = 

	HtmlHelp(

			::GetDesktopWindow(),

            S1,

            HH_DISPLAY_TOPIC,

            NULL);	

//	HWND hwnd = GetDesktopWindow(); 

//	MessageBox("help","help",MB_OK);

hab noch htmlhelp.h und die .lib dazu included....

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.