someone had mentioned ilmerge to me but i'm a little unsure as to how i use it... do i code my app normally with the dll outside, and then stuff it inside with this app?
namespace My_Prog_Name
{
public partial class Form1 : Form
{
[DllImport(My_Prog_Name.Properties.Resources.NameOfDLL)]
...
...
...
if (Connections[GetConnIdx(MSO.UCID)].Username == "Naruto06") {
//Your code here
}
if (Connections[GetConnIdx(MSO.UCID)].Username == "Naruto06" || Connections[GetConnIdx(MSO.UCID)].IsAdmin == 1) {
//Your code here
}
Public Type OutGaugePacket
Time(0 To 3) As Byte 'time in milliseconds (to check order)
Car(0 To 3) As Byte 'Car name
Flags As Integer '(0 To 1) As Byte 'Combination of OG_FLAGS, see below
Gear As Byte 'Reverse:0, Neutral:1, First:2...
SpareB As Byte 'Spare
Speed As Single 'M/S
Rpm As Single 'RPM
Turbo As Single 'BAR
EngTemp As Single 'C
Fuel As Single '0 to 1
OilPress As Single 'BAR
OilTemp As Single 'C
DashLights As Long
ShowLights As Long
Throttle As Single '0 to 1
Brake As Single '0 to 1
Clutch As Single '0 to 1
Display1(0 To 15) As Byte 'Usually Fuel
Display2(0 To 15) As Byte 'Usually Settings
ID As Long '(optional ID - if specified in cfg.txt)
End Type
Public Const DL_SHIFT = 1 '; // bit 0 - shift light
Public Const DL_FULLBEAM = 2 '; // bit 1 - full beam
Public Const DL_HANDBRAKE = 4 '; // bit 2 - handbrake
Public Const DL_PITSPEED = 8 '; // bit 3 - pit speed limiter
Public Const DL_TC = 16 '; // bit 4 - TC active or switched off
Public Const DL_SIGNAL_L = 32 '; // bit 5 - left turn signal
Public Const DL_SIGNAL_R = 64 '; // bit 6 - right turn signal
Public Const DL_SIGNAL_ANY = 128 '; // bit 7 - shared turn signal
Public Const DL_OILWARN = 256 '; // bit 8 - oil pressure warning
Public Const DL_BATTERY = 512 '; // bit 9 - battery warning
Public Const DL_ABS = 1024 ' ; // bit 10 - ABS active or switched off
Public Const DL_SPARE = 2048 '; // bit 11
Public Const DL_NUM = 4096 '; //noinfo
Public Const OG_TURBO = 8192 '; // show turbo gauge
Public Const OG_KM = 16384 '; // if 0 set - user prefers MILES
Public Const OG_BAR = 32768 '; // if 0 set - user prefers PSI
If (Packet.ShowLights And DL_HANDBRAKE) > 0 Then
HandbrakeLightON.Visible = True
HandbrakeLightOFF.Visible = False
Else
HandbrakeLightON.Visible = False
HandbrakeLightOFF.Visible = True
End If
Public Packet As OutGaugePacket