Click here to Skip to main content
15,894,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: Removing null characters from strings Pin
Acidis1-Jun-03 10:05
Acidis1-Jun-03 10:05 
GeneralRecordSets && DataSets Pin
NHM23-May-03 5:00
NHM23-May-03 5:00 
GeneralPlease help: System.Resources.MissingManifestResourceException Pin
Mertli Ozgur Nevres23-May-03 4:42
Mertli Ozgur Nevres23-May-03 4:42 
Generalmenu item with image Pin
NHM23-May-03 4:05
NHM23-May-03 4:05 
GeneralRe: menu item with image Pin
Tomas Petricek23-May-03 13:02
Tomas Petricek23-May-03 13:02 
GeneralRe: menu item with image Pin
KingTermite23-May-03 14:14
KingTermite23-May-03 14:14 
GeneralC# Dockable/Floating Menu Pin
NHM23-May-03 3:14
NHM23-May-03 3:14 
GeneralDebug this!!!!!! Pin
nosmij23-May-03 1:36
nosmij23-May-03 1:36 
Ok guys.

Last time james and jonny helped me out. Thanks.

Look at the code outline and tell me how to do it. My main concern is to use a lib that uses pointers as unsafe code. I don't have a clue.. how to go about this... Give some basics about unsafe coding and pointer usage in C#.


This is the error that shows up:


::::The best overloaded method match for 'CsGL.OpenGL.OpenGL.glGenTextures(int, uint*)' has some invalid arguments

The glGenTextures prototype is as follows-
glGenTextures(int,uint*);

Code outline:
.......................................
namespace CORETextureSpace
{
public class CORETexture
{
unsafe public static void CreateTexture(ref uint[] textureArray,string strFileName,int textureID)
{
...............
OpenGL.glGenTextures(1,textureArray);
................
}
}
}

...........................................

namespace GL{

public sealed class myGL5 : Model{
..................
public const uint MAX_TEXTURES = 1;

public static uint[] g_Texture = new uint[MAX_TEXTURES];

....................
public override void Initialize(){

///////////////////////// This line
CORETexture.CreateTexture(ref g_Texture,"bitmap.bmp",0);

}
}
}
Confused | :confused:

"Excellence is never an accident" - JJC
GeneralRe: Debug this!!!!!! Pin
James T. Johnson24-May-03 9:05
James T. Johnson24-May-03 9:05 
GeneralActiveX in C# Pin
james4723-May-03 1:32
james4723-May-03 1:32 
GeneralRe: ActiveX in C# Pin
J. Dunlap24-May-03 13:08
J. Dunlap24-May-03 13:08 
Generalobject.equals Pin
Andrei Matei23-May-03 1:28
Andrei Matei23-May-03 1:28 
GeneralRe: object.equals Pin
leppie23-May-03 7:18
leppie23-May-03 7:18 
GeneralMedia Service programming with C# Pin
dmhorse22-May-03 21:39
dmhorse22-May-03 21:39 
GeneralChanging List View Highligh:confused: Pin
azusakt22-May-03 20:03
azusakt22-May-03 20:03 
GeneralRe: Changing List View Highligh:confused: Pin
J. Dunlap22-May-03 20:08
J. Dunlap22-May-03 20:08 
GeneralRe: Changing List View Highligh:confused: Pin
Carlos H. Perez22-May-03 21:17
Carlos H. Perez22-May-03 21:17 
GeneralRe: Changing List View Highligh:confused: Pin
Oyvind Bratland23-May-03 0:28
Oyvind Bratland23-May-03 0:28 
GeneralRe: Changing List View Highligh:confused: Pin
Carlos H. Perez23-May-03 17:32
Carlos H. Perez23-May-03 17:32 
GeneralRe: Changing List View Highligh:confused: Pin
azusakt23-May-03 15:20
azusakt23-May-03 15:20 
GeneralRe: Changing List View Highligh:confused: Pin
Carlos H. Perez23-May-03 17:31
Carlos H. Perez23-May-03 17:31 
GeneralXML Loading Problem Pin
Nick Parker22-May-03 17:29
protectorNick Parker22-May-03 17:29 
GeneralRe: XML Loading Problem Pin
Philip Fitzsimons23-May-03 2:55
Philip Fitzsimons23-May-03 2:55 
GeneralRe: XML Loading Problem Pin
Nick Parker23-May-03 5:21
protectorNick Parker23-May-03 5:21 
GeneralRe: XML Loading Problem Pin
cdehelean23-May-03 2:56
cdehelean23-May-03 2:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.