Справочник функций

Ваш аккаунт

Войти через: 
Забыли пароль?
Регистрация
Информацию о новых материалах можно получать и без регистрации:

Почтовая рассылка

Подписчиков: -1
Последний выпуск: 19.06.2015

Windows Form

52K
07 сентября 2010 года
S1avik
27 / / 15.08.2010
Писал проект в консольном приложении на VC++, подключал библиотеки и все нормально работает. Решил написать этот же проект с интерфейсом в Windows Form и столкнулся с большим каскадом ошибок. Подскажите кто знает что может быть причиной ??? Вот список ошибок
[HTML]
1>444.obj : error LNK2031: unable to generate p/invoke for "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ); calling convention missing in metadata
1>Form2.obj : error LNK2031: unable to generate p/invoke for "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ); calling convention missing in metadata
1>444.obj : error LNK2031: unable to generate p/invoke for "extern "C" char * __clrcall VsCardInitFile(struct tag_CAMERA *)" (?VsCardInitFile@@$$J0YMPADPAUtag_CAMERA@@@Z); calling convention missing in metadata
1>Form2.obj : error LNK2031: unable to generate p/invoke for "extern "C" char * __clrcall VsCardInitFile(struct tag_CAMERA *)" (?VsCardInitFile@@$$J0YMPADPAUtag_CAMERA@@@Z); calling convention missing in metadata
1>444.obj : error LNK2031: unable to generate p/invoke for "extern "C" unsigned int __clrcall VsCamCreate2(struct tag_CAMERA * *,unsigned int,unsigned int)" (?VsCamCreate2@@$$J0YMIPAPAUtag_CAMERA@@II@Z); calling convention missing in metadata
1>Form2.obj : error LNK2031: unable to generate p/invoke for "extern "C" unsigned int __clrcall VsCamCreate2(struct tag_CAMERA * *,unsigned int,unsigned int)" (?VsCamCreate2@@$$J0YMIPAPAUtag_CAMERA@@II@Z); calling convention missing in metadata
1>Form2.obj : error LNK2028: unresolved token (0A00000F) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>444.obj : error LNK2028: unresolved token (0A0000C3) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>Form2.obj : error LNK2028: unresolved token (0A000011) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>444.obj : error LNK2028: unresolved token (0A0000C5) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>Form2.obj : error LNK2028: unresolved token (0A000012) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>444.obj : error LNK2028: unresolved token (0A0000C6) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>Form2.obj : error LNK2028: unresolved token (0A000013) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>444.obj : error LNK2028: unresolved token (0A0000C7) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>Form2.obj : error LNK2028: unresolved token (0A000014) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>444.obj : error LNK2028: unresolved token (0A0000C8) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>Form2.obj : error LNK2028: unresolved token (0A000015) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>444.obj : error LNK2028: unresolved token (0A0000C9) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>Form2.obj : error LNK2028: unresolved token (0A000016) "extern "C" char * __clrcall VsCardInitFile(struct tag_CAMERA *)" (?VsCardInitFile@@$$J0YMPADPAUtag_CAMERA@@@Z) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>444.obj : error LNK2028: unresolved token (0A0000CA) "extern "C" char * __clrcall VsCardInitFile(struct tag_CAMERA *)" (?VsCardInitFile@@$$J0YMPADPAUtag_CAMERA@@@Z) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>Form2.obj : error LNK2028: unresolved token (0A000017) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>444.obj : error LNK2028: unresolved token (0A0000CB) "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>Form2.obj : error LNK2028: unresolved token (0A000018) "extern "C" unsigned int __clrcall VsCamCreate2(struct tag_CAMERA * *,unsigned int,unsigned int)" (?VsCamCreate2@@$$J0YMIPAPAUtag_CAMERA@@II@Z) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>444.obj : error LNK2028: unresolved token (0A0000CC) "extern "C" unsigned int __clrcall VsCamCreate2(struct tag_CAMERA * *,unsigned int,unsigned int)" (?VsCamCreate2@@$$J0YMIPAPAUtag_CAMERA@@II@Z) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)
1>444.obj : error LNK2019: unresolved external symbol "extern "C" unsigned int __clrcall VsCamCmd(struct tag_CAMERA *,unsigned long,...)" (?VsCamCmd@@$$J0YMIPAUtag_CAMERA@@KZZ) referenced in function "private: void __clrcall My444::Form1::вводКадраToolStripMenuItem_Click(class System::Object ^,class System::EventArgs ^)" (?вводКадраToolStripMenuItem_Click@Form1@My444@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)

[/HTML]
342
08 сентября 2010 года
Yos
209 / / 21.06.2003
с виндовс форм никогда не работал, но такой текст ошибок встречал и ранее ))) это простое ненахождение (в моем случае было .lib) хде прописаны те функции которые линкуются...
52K
09 сентября 2010 года
S1avik
27 / / 15.08.2010
Всё, проблема решена!
Нужно было в настройках проекта поменять ключ, в
Common Language Runtime Support установить Common Language Runtime Support(/clr)
Реклама на сайте | Обмен ссылками | Ссылки | Экспорт (RSS) | Контакты
Добавить статью | Добавить исходник | Добавить хостинг-провайдера | Добавить сайт в каталог