
matthieuvb
Active Members-
Posts
40 -
Joined
-
Last visited
Profile Information
-
Location
Assen, The Netherlands
-
WWW
http://xibbez.t15.org/
matthieuvb's Achievements

Seeker (1/7)
0
Reputation
-
python the programming language - 2 questions
matthieuvb replied to matthieuvb's topic in AutoIt Technical Discussion
thats not the problem. (i think) the problem is this: tkFileDialog.askopenfilename() if i press the open menu, i get this error: Traceback (most recent call last): File "C:\Users\Matthieu\Documents\Python\GUI.py", line 25, in openfileedit self.filepath = tkFileDialog.askopenfilename() AttributeError: 'module' object has no attribute 'askopenfilename' i dont know what i doing wrong! i use win_7 x86 -
python the programming language - 2 questions
matthieuvb replied to matthieuvb's topic in AutoIt Technical Discussion
i now, but i do'nt know a good python forum -
why this script is not working: import wx import tkFileDialog from Tkinter import * ID_A = 101 class CreateFrame(wx.Frame): def __init__(self, parent, id): wx.Frame.__init__(self, parent, id, "Notepad python", size = (500, 400)) self.panl = wx.Panel(self) self.statusbar = self.CreateStatusBar() self.menubar = wx.MenuBar() self.menu1 = wx.Menu() self.menu1.Append(ID_A, "Open", "Open a file") self.menubar.Append(self.menu1, "file") self.SetMenuBar(self.menubar) self.txtctrl = wx.TextCtrl(self.panl, pos = (10, 10), size = (200, 300), style = wx.TE_MULTILINE) self.Connect(ID_A, -1, wx.wxEVT_COMMAND_MENU_SELECTED, self.openfileedit) def openfileedit(self, event): OFO = Tk() OFO.withdraw() self.filepath = tkFileDialog.askopenfilename() self.fileobj = open(self.filepath, "r") self.txtctrl.Clear() self.txtctrl.AppendText(self.fileobj.read()) if __name__ == "__main__": app = wx.App() frame = CreateFrame(parent = None, id = -1) frame.Show() app.MainLoop() I use python27. PS: whats a good python forum?
-
NICE! but this is the bluescreen of older windows versions!!! NICE!
-
protected my project from decomplier
matthieuvb replied to jakalspop's topic in AutoIt General Help and Support
Use the obfuscator! The program makes it very difficult to edit the script. -
sorry, but I do not really have time. (and no sense )
-
a simple and easy program to make simple sounds. (it's in dutch) here is the script: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_outfile=..\SoundMaker.exe #AutoIt3Wrapper_UseX64=n #AutoIt3Wrapper_Res_Description=SoundMaker #AutoIt3Wrapper_Res_Fileversion=1.0.0.0 #AutoIt3Wrapper_Res_Language=1043 #AutoIt3Wrapper_Add_Constants=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <File.au3> #NoTrayIcon Opt("GUIOnEventMode", 1) Global $Step[9999][4], $BK, $NX, $PA, $Slider, $Slider2, $Combo Global $NumberMenu, $GUI, $PlayMenu, $NowRunningProject, $ExitCode Global $szDrive, $szDir, $szFName, $szExt, $SMPPPLUSMenu, $SMPPMenu Global $OD1, $OD2, $OD3, $OD4 _SoundMaker_Startup() Func _SoundMaker_Startup() $GUI = GUICreate("SoundMaker - Project1", 250, 250) GUISetOnEvent($GUI_EVENT_CLOSE, "_SoundMaker_Exit") $Step[0][0] = 0 $Slider = GUICtrlCreateSlider(10, 60, 230, 25) GUICtrlSetLimit(-1, 20) $Slider2 = GUICtrlCreateSlider(10, 100, 230, 25) GUICtrlSetLimit(-1, 20) $BK = GUICtrlCreateButton("Vorige", 10, 20, 60, 23) GUICtrlSetState($BK, $GUI_DISABLE) GUICtrlSetOnEvent(-1, "_SoundMaker_BackButton") GUICtrlSetTip($BK, "Vorige") $SP = GUICtrlCreateButton("Pagina opslaan", 75, 20, 90, 23) GUICtrlSetOnEvent($SP, "_SoundMaker_SavePage") GUICtrlSetTip($SP, "Pagina opslaan") $NX = GUICtrlCreateButton("Volgende", 170, 20, 60, 23) GUICtrlSetOnEvent($NX, "_SoundMaker_NextButton") GUICtrlSetTip($NX, "Volgende") $Label1 = GUICtrlCreateLabel("0 Hz", 10, 150, 80, 24) GUICtrlSetTip(-1, "Frequentie in Herz") $Label2 = GUICtrlCreateLabel("0 ms", 150, 150, 80, 24) GUICtrlSetTip(-1, "Tijd in miliseconden") $PA = GUICtrlCreateButton("Afspelen", 10, 190, 80, 24) GUICtrlSetOnEvent($PA, "_SoundMaker_PlaySound") GUICtrlSetTip($PA, "Project afspelen") $Combo = GUICtrlCreateCombo("5", 150, 190, 80, 24) GUICtrlSetData(-1, "10|15|20|25|30") GUICtrlSetTip($Combo, "Pagina's") GUICtrlSetOnEvent($Combo, "_SoundMaker_Combo") $FileMenu = GUICtrlCreateMenu("Project") GUICtrlCreateMenuItem("Nieuw", $FileMenu) GUICtrlSetOnEvent(-1, "_SoundMaker_NewProject") GUICtrlCreateMenuItem("Opslaan", $FileMenu) GUICtrlSetOnEvent(-1, "_SoundMaker_SaveSound") GUICtrlCreateMenuItem("", $FileMenu) GUICtrlCreateMenuItem("Importeren", $FileMenu) GUICtrlSetOnEvent(-1, "_SoundMaker_SelectImportSound") GUICtrlCreateMenuItem("", $FileMenu) $PlayMenu = GUICtrlCreateMenuItem("Afspelen", $FileMenu) GUICtrlSetOnEvent(-1, "_SoundMaker_PlaySound") $Play2Menu = GUICtrlCreateMenu("Afspelen met", $FileMenu) GUICtrlCreateMenuItem("", $FileMenu) GUICtrlCreateMenuItem("Onderdelen", $FileMenu) GUICtrlSetOnEvent(-1, "_SoundMaker_ViewOD") $SMPPMenu = GUICtrlCreateMenuItem("SMPP", $Play2Menu) GUICtrlSetOnEvent(-1, "_SoundMaker_PlaySoundWithSMPP") GUICtrlCreateMenuItem("SM (standaard)", $Play2Menu) GUICtrlSetOnEvent(-1, "_SoundMaker_PlaySound") $SMPPPLUSMenu = GUICtrlCreateMenuItem("SMPP+", $Play2Menu) GUICtrlSetOnEvent(-1, "_SoundMaker_PlaySoundWithSMPPPLUS") GUICtrlCreateMenuItem("WMP", $Play2Menu) GUICtrlSetState(-1, $GUI_DISABLE) $NumberMenu = GUICtrlCreateMenu("Pagina " & 0 & "/5") GUICtrlSetState($NumberMenu, $GUI_DISABLE) GUISetState() If FileExists(@ScriptDir & "\SoundMaker_ProjectPlayer x86.exe") Or FileExists(@ScriptDir & "\SMPP x86.exe") Or FileExists(@ScriptDir & "\SMPP.exe") Or FileExists(@ScriptDir & "\SoundMaker_ProjectPlayer.exe") Or FileExists(@ScriptDir & "\SoundMakerProjectPlayer.exe") Or FileExists(@ScriptDir & "\SoundMaker ProjectPlayer.exe") Then $OD1 = "Geïnstalleerd" Else GUICtrlSetState($SMPPMenu, $GUI_DISABLE) $OD1 = "Niet geïnstalleerd" EndIf If FileExists(@ScriptDir & "\SMPPplus.exe") Or FileExists(@ScriptDir & "\SMPPplus x86.exe") Or FileExists(@ScriptDir & "\SMPPplus_x86.exe") Then $OD2 = "Geïnstalleerd" Else GUICtrlSetState($SMPPPLUSMenu, $GUI_DISABLE) $OD2 = "Niet geïnstalleerd" EndIf If $CmdLine[0] > 0 Then If $CmdLine[1] = "SoundMaker" Then Else _SoundMaker_ImportSound($CmdLine[1]) EndIf EndIf While 1 Sleep(50) GUICtrlSetData($Label1, ((GUICtrlRead($Slider) * 2000) / 20) & " Hz") Sleep(50) GUICtrlSetData($Label2, ((GUICtrlRead($Slider2) * 2000) / 20) & " ms") WEnd EndFunc Func _SoundMaker_Exit() Exit EndFunc Func _SoundMaker_NextButton() If $Step[0][0] + 1 > GUICtrlRead($Combo) Then Msgbox(48, "SoundMaker", "Aantal pagina's overtreden.", -1, $GUI) Else $Step[0][0] = $Step[0][0] + 1 $Step[0][1] = $Step[0][1] + 1 $NS = $Step[0][0] GUICtrlSetState($BK, $GUI_ENABLE) GUICtrlSetData($NumberMenu, "Pagina " & $Step[0][0] & "/" & GUICtrlRead($Combo)) GUICtrlSetData($Slider, $Step[$NS][1]) GUICtrlSetData($Slider2, $Step[$NS][2]) EndIf EndFunc Func _SoundMaker_BackButton() $Step[0][0] = $Step[0][0] - 1 $Step[0][1] = $Step[0][1] - 1 $NS = $Step[0][0] If $Step[0][0] = 0 Then GUICtrlSetState($BK, $GUI_DISABLE) EndIf GUICtrlSetData($NumberMenu, "Pagina " & $Step[0][0] & "/" & GUICtrlRead($Combo)) GUICtrlSetData($Slider, $Step[$NS][1]) GUICtrlSetData($Slider2, $Step[$NS][2]) EndFunc Func _SoundMaker_PlaySound() GUICtrlSetState($PlayMenu, $GUI_DISABLE) GUICtrlSetState($PA, $GUI_DISABLE) Sleep(300) For $i = 0 To GUICtrlRead($Combo) Step 1 If $Step[$i][1] = 0 Then If $Step[$i][2] = 0 Then Else Sleep(($Step[$i][2] * 2000) / 20) EndIf Else Beep(($Step[$i][1] * 2000) / 20, ($Step[$i][2] * 2000) / 20) EndIf Next GUICtrlSetState($PlayMenu, $GUI_ENABLE) GUICtrlSetState($PA, $GUI_ENABLE) EndFunc Func _SoundMaker_Combo() GUICtrlSetData($NumberMenu, "Pagina " & $Step[0][0] & "/" & GUICtrlRead($Combo)) EndFunc Func _SoundMaker_SavePage() $NS = $Step[0][0] $Step[$NS][1] = GUICtrlRead($Slider) $Step[$NS][2] = GUICtrlRead($Slider2) EndFunc Func _SoundMaker_SaveSound() If FileExists($NowRunningProject) Then $WriteFile = $NowRunningProject Else $WriteFile = FileSaveDialog("SoundMaker", @MyDocumentsDir, "SoundMaker files(*.smp)", 2, "Project1", $GUI) EndIf $Path = _PathSplit($WriteFile, $szDrive, $szDir, $szFName, $szExt) If $WriteFile = "" Then Else Select Case $szExt = ".smp" Case $szExt = "" $WriteFile = $WriteFile & ".smp" Case Else $WriteFile = $szDrive & $szDir & $szFName & ".smp" EndSelect FileDelete($WriteFile) Sleep(200) FileWrite($WriteFile, "") For $i = 0 To GUICtrlRead($Combo) Step 1 IniWrite($WriteFile, "MySMProject", $Step[$i][1], $Step[$i][2]) Next If FileExists($WriteFile) Then $NowRunningProject = $WriteFile WinSetTitle($GUI, "", "SoundMaker - " & $szFName) Else Msgbox(16, "SoundMaker", "Er is een fout opgetreden bij het Opslaan!" & @CRLF & "Het programma wordt nu gesloten." & @CRLF & "error code: " & Hex(@Error, 8), -1, $GUI) Exit EndIf EndIf EndFunc Func _SoundMaker_SelectImportSound() _SoundMaker_ImportSound(FileOpenDialog("SoundMaker", @MyDocumentsDir, "SoundMaker files(*.smp)", 3, "", $GUI)) EndFunc Func _SoundMaker_ImportSound($OpenProject) If $OpenProject = "" Then Else Global $Step[9999][4] If Not FileExists($OpenProject) Then Msgbox(16, "SoundMaker", "Het Geopende project bestaat niet!" & @CRLF & "Het programma wordt nu gesloten." & @CRLF & "error code: " & Hex(8, 8), -1, $GUI) Exit EndIf $StepRead = IniReadSection($OpenProject, "MySMProject") If @Error Then Msgbox(16, "SoundMaker", "Er is een fout opgetreden bij het importeren!" & @CRLF & "Het programma wordt nu gesloten." & @CRLF & "error code: " & Hex(@Error, 8), -1, $GUI) Exit EndIf For $i = 1 To ($StepRead[0][0]) Step 1 $A = ($i - 1) $Step[$A][2] = $StepRead[$i][1] $Step[$A][1] = $StepRead[$i][0] Next GUICtrlSetData($Combo, "|" & $StepRead[0][0], $StepRead[0][0]) GUICtrlSetData($NumberMenu, "Pagina " & 0 & "/" & $StepRead[0][0]) $Step[0][0] = 0 $NS = $Step[0][0] If $StepRead[0][0] = 0 Then MsgBox(16, "SoundMaker", "Er zijn geen pagina's gevonden in het geladen project!" & @CRLF & "Het programma wordt nu gesloten." & @CRLF & "error code: " & Hex(7, 8), -1, $GUI) Exit Else _PathSplit($OpenProject, $szDrive, $szDir, $szFName, $szExt) $NowRunningProject = $OpenProject WinSetTitle($GUI, "", "SoundMaker - " & $szFName) GUICtrlSetData($Slider, $Step[$NS][1]) GUICtrlSetData($Slider2, $Step[$NS][2]) EndIf EndIf EndFunc Func _SoundMaker_PlaySoundWithSMPP() If FileExists($NowRunningProject) Then Select Case FileExists(@ScriptDir & "\SoundMaker_ProjectPlayer x86.exe") RunWait(@ScriptDir & "\SoundMaker_ProjectPlayer x86.exe " & $NowRunningProject) Case FileExists(@ScriptDir & "\SoundMaker ProjectPlayer.exe") RunWait(@ScriptDir & "\SoundMaker ProjectPlayer.exe " & $NowRunningProject) Case FileExists(@ScriptDir & "\SoundMaker_ProjectPlayer.exe") RunWait(@ScriptDir & "\SoundMaker_ProjectPlayer.exe " & $NowRunningProject) Case FileExists(@ScriptDir & "\SoundMakerProjectPlayer.exe") RunWait(@ScriptDir & "\SoundMakerProjectPlayer.exe " & $NowRunningProject) Case FileExists(@ScriptDir & "\SMPP.exe") RunWait(@ScriptDir & "\SMPP.exe " & $NowRunningProject) Case FileExists(@ScriptDir & "\SMPP x86.exe") RunWait(@ScriptDir & "\SMPP x86.exe " & $NowRunningProject) Case FileExists(@ScriptDir & "\SMPP_x86.exe") RunWait(@ScriptDir & "\SMPP_x86.exe " & $NowRunningProject) Case Else Msgbox(16, "SoundMaker", "SoundMaker kan het programma SMPP.exe niet vinden." & @CRLF & "Controleer de onderdelen." & @CRLF & "error code: " & Hex(11, 8), -1, $GUI) EndSelect Else Msgbox(16, "SoundMaker", "De SMPP mode werkt alleen bij opgeslagen projecten." & @CRLF & "Sla het project op om het in deze mode af te spelen." & @CRLF & "error code: " & Hex(13, 8), -1, $GUI) EndIf EndFunc Func _SoundMaker_PlaySoundWithSMPPPLUS() If FileExists($NowRunningProject) Then Select Case FileExists(@ScriptDir & "\SMPPplus.exe") RunWait(@ScriptDir & "\SMPPplus.exe " & $NowRunningProject) Case FileExists(@ScriptDir & "\SMPPplus x86.exe") RunWait(@ScriptDir & "\SMPPplus x86.exe " & $NowRunningProject) Case FileExists(@ScriptDir & "\SMPPplus_x86.exe") RunWait(@ScriptDir & "\SMPPplus_x86.exe " & $NowRunningProject) Case Else Msgbox(16, "SoundMaker", "SoundMaker kan het programma SMPPplus.exe niet vinden." & @CRLF & "Controleer de onderdelen." & @CRLF & "error code: " & Hex(31, 8), -1, $GUI) EndSelect Else Msgbox(16, "SoundMaker", "De SMPP+ mode werkt alleen bij opgeslagen projecten." & @CRLF & "Sla het project op om het in deze mode af te spelen." & @CRLF & "error code: " & Hex(32, 8), -1, $GUI) EndIf EndFunc Func _SoundMaker_NewProject() RunWait(@ScriptFullPath) Sleep(200) EndFunc Func _SoundMaker_ViewOD() $ExitCode = False Msgbox(64, "SoundMaker", "Geïnstalleerde onderdelen:" & @CRLF & @CRLF & "SMPP: " & $OD1 & @CRLF & "SM: Ingebouwd" & @CRLF & "SMPP+: " & $OD2 & @CRLF & "WMP: Niet geïnstalleerd", -1, $GUI) EndFunc Func _SoundMaker_SetExitCode() $ExitCode = True EndFunc And an extra player: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_outfile=..\SMPP.exe #AutoIt3Wrapper_UseX64=n #AutoIt3Wrapper_Res_Description=SMPP #AutoIt3Wrapper_Res_Fileversion=1.0.0.0 #AutoIt3Wrapper_Res_Language=1043 #AutoIt3Wrapper_Add_Constants=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <Misc.au3> #NoTrayIcon If _Singleton("SoundMakerProjectPlayerMP", 1) = 0 Then Exit EndIf Global $Step[9999][4], $Pages If $CmdLine[0] > 0 Then _SoundMaker_ImportSound($CmdLine[1]) _SoundMaker_PlayLoadedProject() Else _SoundMaker_ImportSound(FileOpenDialog("SMPP", @MyDocumentsDir, "SoundMaker files(*.smp)", 3, "")) _SoundMaker_PlayLoadedProject() EndIf Func _SoundMaker_ImportSound($OpenProject) If $OpenProject = "" Then Else Global $Step[9999][4] If Not FileExists($OpenProject) Then Msgbox(16, "SoundMaker", "Het Geopende project bestaat niet!" & @CRLF & "Het programma wordt nu gesloten." & @CRLF & "error code: " & Hex(8, 8)) Exit EndIf $StepRead = IniReadSection($OpenProject, "MySMProject") If @Error Then Msgbox(16, "SoundMaker", "Er is een fout opgetreden bij het importeren!" & @CRLF & "Het programma wordt nu gesloten." & @CRLF & "error code: " & Hex(@Error, 8)) Exit EndIf $Pages = $StepRead[0][0] For $i = 1 To $Pages Step 1 $A = ($i - 1) $Step[$A][2] = $StepRead[$i][1] $Step[$A][1] = $StepRead[$i][0] Next $Step[0][0] = 0 $NS = $Step[0][0] If $StepRead[0][0] = 0 Then MsgBox(16, "SoundMaker", "Er zijn geen pagina's gevonden in het geladen project!" & @CRLF & "Het programma wordt nu gesloten." & @CRLF & "error code: " & Hex(7, 8)) Exit EndIf EndIf EndFunc Func _SoundMaker_PlayLoadedProject() For $i = 0 To ($Pages) Step 1 If $Step[$i][1] = 0 Then If $Step[$i][2] = 0 Then Else Sleep(($Step[$i][2] * 2000) / 20) EndIf Else Beep(($Step[$i][1] * 2000) / 20, ($Step[$i][2] * 2000) / 20) EndIf Next EndFunc try it out!
-
Maybe make a better version... but it is intended that you can leave the program difficult.
-
Ik heb er één dag mee zitten klooien zonder resultaat,dus toen dacht ik, laat ik mn tijd niet verknoeien! mare, bedankt!
-
now i am 13 years old! it's my birthday today
-
oh, I thought so! ok, so I think I know enough. and if not, then I'll place another topic. Thanks all!
-
If i compile this example in Dev-c++, then get these errors: Compiler: Default compiler Building Makefile: "F:\Dev-C++\Projecten\TextEdit\Makefile.win" Bezig met uitvoeren van make... make.exe -f "F:\Dev-C++\Projecten\TextEdit\Makefile.win" all g++.exe -c MainFrm.cpp -o MainFrm.o -I"F:/Dev-C++/App/devcpp/lib/gcc/mingw32/3.4.2/include" -I"F:/Dev-C++/App/devcpp/include/c++/3.4.2/backward" -I"F:/Dev-C++/App/devcpp/include/c++/3.4.2/mingw32" -I"F:/Dev-C++/App/devcpp/include/c++/3.4.2" -I"F:/Dev-C++/App/devcpp/include" -D__GNUWIN32__ -W -DWIN32 -DNDEBUG -D_WINDOWS -D_AFXDLL -D_MBCS In file included from MainFrm.cpp:4: stdafx.h:15:64: afxwin.h: No such file or directory stdafx.h:16:46: afxext.h: No such file or directory stdafx.h:17:54: afxdisp.h: No such file or directory stdafx.h:18:78: afxdtctl.h: No such file or directory stdafx.h:20:65: afxcmn.h: No such file or directory In file included from MainFrm.cpp:5: TextEdit.h:12:3: #error include 'stdafx.h' before including this file for PCH In file included from MainFrm.cpp:5: TextEdit.h:23: error: expected class-name before '{' token TextEdit.h:31: error: `BOOL' does not name a type TextEdit.h:38: error: ISO C++ forbids declaration of `afx_msg' with no type TextEdit.h:38: error: expected `;' before "void" TextEdit.h:43: error: ISO C++ forbids declaration of `DECLARE_MESSAGE_MAP' with no type TextEdit.h:43: error: expected `;' before '}' token TextEdit.h:43: error: expected `;' before '}' token In file included from MainFrm.cpp:6: MainFrm.h:12: error: `DWORD' does not name a type MainFrm.h:13: error: `DWORD' does not name a type MainFrm.h:16: error: expected class-name before '{' token MainFrm.h:20: error: `CRichEditCtrl' does not name a type MainFrm.h:28: error: ISO C++ forbids declaration of `DECLARE_DYNAMIC' with no type MainFrm.h:28: error: expected `;' before "public" MainFrm.h:36: error: `BOOL' does not name a type MainFrm.h:48: error: `CStatusBar' does not name a type MainFrm.h:49: error: `CToolBar' does not name a type MainFrm.h:50: error: `CString' does not name a type MainFrm.h:56: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:56: error: expected `;' before "int" MainFrm.h:57: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:57: error: expected `;' before "void" MainFrm.h:58: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:58: error: expected `;' before "void" MainFrm.h:59: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:59: error: expected `;' before "void" MainFrm.h:60: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:60: error: expected `;' before "void" MainFrm.h:61: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:61: error: expected `;' before "void" MainFrm.h:62: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:62: error: expected `;' before "void" MainFrm.h:63: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:63: error: expected `;' before "void" MainFrm.h:64: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:64: error: expected `;' before "void" MainFrm.h:65: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:65: error: expected `;' before "void" MainFrm.h:66: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:66: error: expected `;' before "void" MainFrm.h:67: error: ISO C++ forbids declaration of `afx_msg' with no type MainFrm.h:67: error: expected `;' before "void" MainFrm.h:70: error: ISO C++ forbids declaration of `DECLARE_MESSAGE_MAP' with no type MainFrm.h:70: error: expected `;' before '}' token MainFrm.h:70: error: expected `;' before '}' token MainFrm.cpp:15: error: `CFrameWnd' has not been declared MainFrm.cpp:17: error: expected constructor, destructor, or type conversion before "BEGIN_MESSAGE_MAP" MainFrm.cpp:17: error: expected `,' or `;' before "BEGIN_MESSAGE_MAP" MainFrm.cpp: In constructor `CMainFrame::CMainFrame()': MainFrm.cpp:47: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp:47: error: (Each undeclared identifier is reported only once for each function it appears in.) MainFrm.cpp: At global scope: MainFrm.cpp:55: error: `int CMainFrame::OnCreate' is not a static member of `class CMainFrame' MainFrm.cpp:55: error: `LPCREATESTRUCT' was not declared in this scope MainFrm.cpp:56: error: expected `,' or `;' before '{' token MainFrm.cpp:116: error: `BOOL' does not name a type MainFrm.cpp:145: error: variable or field `OnSetFocus' declared void MainFrm.cpp:145: error: `int CMainFrame::OnSetFocus' is not a static member of `class CMainFrame' MainFrm.cpp:145: error: `CWnd' was not declared in this scope MainFrm.cpp:145: error: `pWnd' was not declared in this scope MainFrm.cpp:146: error: expected `,' or `;' before '{' token MainFrm.cpp:151: error: `BOOL' does not name a type MainFrm.cpp:163: error: no `void CMainFrame::OnEditPaste()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnEditPaste()': MainFrm.cpp:164: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp:164: error: `CF_TEXT' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:168: error: no `void CMainFrame::OnEditCut()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnEditCut()': MainFrm.cpp:169: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:173: error: no `void CMainFrame::OnEditCopy()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnEditCopy()': MainFrm.cpp:174: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:178: error: no `void CMainFrame::OnEditUndo()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnEditUndo()': MainFrm.cpp:179: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:183: error: no `void CMainFrame::OnFilePrint()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::Print(bool)': MainFrm.cpp:189: error: `CPrintDialog' undeclared (first use this function) MainFrm.cpp:189: error: expected `;' before "printDialog" MainFrm.cpp:193: error: `printDialog' undeclared (first use this function) MainFrm.cpp:193: error: `IDCANCEL' undeclared (first use this function) MainFrm.cpp:201: error: `HDC' undeclared (first use this function) MainFrm.cpp:201: error: expected `;' before "hPrinterDC" MainFrm.cpp:205: error: `FORMATRANGE' undeclared (first use this function) MainFrm.cpp:205: error: expected `;' before "fr" MainFrm.cpp:206: error: `hPrinterDC' undeclared (first use this function) MainFrm.cpp:206: error: `HORZRES' undeclared (first use this function) MainFrm.cpp:206: error: `GetDeviceCaps' undeclared (first use this function) MainFrm.cpp:207: error: `VERTRES' undeclared (first use this function) MainFrm.cpp:208: error: `LOGPIXELSX' undeclared (first use this function) MainFrm.cpp:209: error: `LOGPIXELSY' undeclared (first use this function) MainFrm.cpp:210: error: `LONG' undeclared (first use this function) MainFrm.cpp:210: error: expected `;' before "lTextLength" MainFrm.cpp:211: error: expected `;' before "lTextPrinted" MainFrm.cpp:214: error: `MM_TEXT' undeclared (first use this function) MainFrm.cpp:214: error: `SetMapMode' undeclared (first use this function) MainFrm.cpp:217: error: `fr' undeclared (first use this function) MainFrm.cpp:217: error: `ZeroMemory' undeclared (first use this function) MainFrm.cpp:234: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp:237: error: `DOCINFO' undeclared (first use this function) MainFrm.cpp:237: error: expected `;' before "di" MainFrm.cpp:238: error: `di' undeclared (first use this function) MainFrm.cpp:241: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp:244: error: `NULL' undeclared (first use this function) MainFrm.cpp:248: error: `StartDoc' undeclared (first use this function) MainFrm.cpp:251: error: `lTextLength' undeclared (first use this function) MainFrm.cpp:256: error: `StartPage' undeclared (first use this function) MainFrm.cpp:262: error: `lTextPrinted' undeclared (first use this function) MainFrm.cpp:266: error: `EndPage' undeclared (first use this function) MainFrm.cpp:281: error: `EndDoc' undeclared (first use this function) MainFrm.cpp:283: error: `DeleteDC' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:287: error: variable or field `ondropFiles' declared void MainFrm.cpp:287: error: `int CMainFrame::ondropFiles' is not a static member of `class CMainFrame' MainFrm.cpp:287: error: `HDROP' was not declared in this scope MainFrm.cpp:288: error: expected `,' or `;' before '{' token MainFrm.cpp: In member function `void CMainFrame::ReadFile()': MainFrm.cpp:303: error: `CString' undeclared (first use this function) MainFrm.cpp:303: error: expected `;' before "FileName" MainFrm.cpp:306: error: `FileName' undeclared (first use this function) MainFrm.cpp:306: error: `_T' undeclared (first use this function) MainFrm.cpp:309: error: `CFile' undeclared (first use this function) MainFrm.cpp:309: error: expected `;' before "cFile" MainFrm.cpp:310: error: `EDITSTREAM' undeclared (first use this function) MainFrm.cpp:310: error: expected `;' before "es" MainFrm.cpp:312: error: `es' undeclared (first use this function) MainFrm.cpp:312: error: `DWORD' undeclared (first use this function) MainFrm.cpp:312: error: `cFile' undeclared (first use this function) MainFrm.cpp:313: error: `EDITSTREAMCALLBACK' undeclared (first use this function) MainFrm.cpp:313: error: expected `;' before "MyStreamInCallback" MainFrm.cpp:315: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp:315: error: `SF_TEXT' undeclared (first use this function) MainFrm.cpp: In member function `void CMainFrame::WriteFile()': MainFrm.cpp:322: error: `CString' undeclared (first use this function) MainFrm.cpp:322: error: expected `;' before "Pathname" MainFrm.cpp:323: error: `Pathname' undeclared (first use this function) MainFrm.cpp:323: error: `_T' undeclared (first use this function) MainFrm.cpp:326: error: `CFile' undeclared (first use this function) MainFrm.cpp:326: error: expected `;' before "cFile" MainFrm.cpp:327: error: `EDITSTREAM' undeclared (first use this function) MainFrm.cpp:327: error: expected `;' before "es" MainFrm.cpp:329: error: `es' undeclared (first use this function) MainFrm.cpp:329: error: `DWORD' undeclared (first use this function) MainFrm.cpp:329: error: `cFile' undeclared (first use this function) MainFrm.cpp:330: error: `EDITSTREAMCALLBACK' undeclared (first use this function) MainFrm.cpp:330: error: expected `;' before "MyStreamOutCallback" MainFrm.cpp:332: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp:332: error: `SF_TEXT' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:337: error: no `void CMainFrame::OnFileOpen()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnFileOpen()': MainFrm.cpp:344: error: `CFileDialog' undeclared (first use this function) MainFrm.cpp:344: error: expected `;' before "fileDlg" MainFrm.cpp:349: error: `fileDlg' undeclared (first use this function) MainFrm.cpp:349: error: `IDOK' undeclared (first use this function) MainFrm.cpp:351: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:360: error: `DWORD' does not name a type MainFrm.cpp:371: error: `DWORD' does not name a type MainFrm.cpp:382: error: no `void CMainFrame::OnFileSave()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnFileSave()': MainFrm.cpp:383: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp:383: error: `OnFileSaveas' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:388: error: no `void CMainFrame::OnFileNew()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnFileNew()': MainFrm.cpp:390: error: `m_RichEdit' undeclared (first use this function) MainFrm.cpp:392: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp: At global scope: MainFrm.cpp:398: error: no `void CMainFrame::OnFileSaveas()' member function declared in class `CMainFrame' MainFrm.cpp: In member function `void CMainFrame::OnFileSaveas()': MainFrm.cpp:404: error: `CFileDialog' undeclared (first use this function) MainFrm.cpp:404: error: expected `;' before "fileDlg" MainFrm.cpp:409: error: `fileDlg' undeclared (first use this function) MainFrm.cpp:409: error: `IDOK' undeclared (first use this function) MainFrm.cpp:411: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp: In member function `void CMainFrame::SetWindowTitle()': MainFrm.cpp:422: error: `CString' undeclared (first use this function) MainFrm.cpp:422: error: expected `;' before "Title" MainFrm.cpp:424: error: `m_strPathname' undeclared (first use this function) MainFrm.cpp:424: error: `Title' undeclared (first use this function) MainFrm.cpp:426: error: `SetWindowText' undeclared (first use this function) make.exe: *** [MainFrm.o] Error 1 Uitvoering voltooidand in C++ i get this question: maybe a wrong compiler?
-
why? I already have a pdf.