- Yasaklandı
- #1
Dlli programın olduğu klasörün atıp dllımport ile fonksiyonları çekmeyi denedinmi?
[DllImport(App.DLL, EntryPoint = "Discord_Initialize", CallingConvention = CallingConvention.Cdecl)]
public static extern void Initialize(string applicationId, ref EventHandlers handlers, bool autoRegister, string optionalSteamId);
[DllImport(App.DLL, EntryPoint = "Discord_UpdatePresence", CallingConvention = CallingConvention.Cdecl)]
public static extern void UpdatePresence(ref RichPresence presence);
[DllImport(App.DLL, EntryPoint = "Discord_RunCallbacks", CallingConvention = CallingConvention.Cdecl)]
public static extern void RunCallbacks();
[DllImport(App.DLL, EntryPoint = "Discord_Shutdown", CallingConvention = CallingConvention.Cdecl)]
public static extern void Shutdown();
c# ile c++ birleştirilmiyor maalesef bunun yolunu bulamadımdll yi exe nin içine gömeceksin kodu var nette
DENEMELİSİN ARKADAŞIMIZIN DEDİĞİNİSanırım referans eklemekten bahsediyorsun ya da programa gömmek. Benim anladığım bu. Referans için Proje'de Solution Explorer kısmında references var oraya sağ tıklayıp ekleyebilirsin. gömmek için de solution explorer'dan resources'e gelip ekleyebilirsin.