unresolved token, Verweis auf nicht aufgelöstes Symbol
-
Fehler 4 error LNK2019: Verweis auf nicht aufgel÷stes externes Symbol ""extern "C" int __stdcall GetOpenFileNameA(struct tagOFNA *)" (?GetOpenFileNameA@@$$J14YGHPAUtagOFNA@@@Z)" in Funktion ""private: void __clrcall WindowsFormsApplication1::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click@Form1@WindowsFormsApplication1@@$$FAAAVObject@System@@P$AAVEventArgs@4@@Z)". C:\Users\Kaze\Documents\Visual Studio 2012\Projects\WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsApplication1.obj
code ist:
#pragma once #include <Windows.h> #include <fstream> #include <string.h> #include <iostream> .....ziemlich viel Zeugs ohne Fehler.... private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { char test[20]; int i= 0; std::fstream output; char path [MAX_PATH + 1 ] = {0}; OPENFILENAMEA datei = {sizeof (OPENFILENAMEA), 0, 0, "*.z64\0\0", 0, 0, 0, path, MAX_PATH, 0, 0, ".\\", "Datei Auswählen", 0}; if (false == GetOpenFileNameA (&datei)){ MessageBoxA (0, "Datei konnte nicht geöffnet werden.", "Fehler",0);} output.open(path , std::ios::binary | std::ios::out | std::ios::in); for (i = 0; i< textBox1->TextLength && i <20 ; i++) { test [i] = textBox1->Text[i]; output.seekp(32+i); output.put (test [i]);;} if (textBox1->TextLength <20){ for ( 0; i<20; i++){ output.seekp(32+i); output.put (32);};} output.close(); };Es gibt außerdem Fehler bei MessageBoxA... also bei allem, was in windows.h sein sollte...
-