• What Do You Need Help With? V6
    7,544 replies, posted
This is a calendar for my school's bar. What do you think the easiest way of making this calendar would be? Doing it manually in Photoshop sure sucks ass. I'm thinking of making some nifty application in C# but if you think there's an easier solution, like an existing project which could generate almost the exact same result as Photoshopping this around, please let me know! [img]http://i.imgur.com/le3p5DG.png[/img]
[QUOTE=esalaka;44177731]Did you download the binaries or the source package?[/QUOTE] Oops, that was pretty stupid of me. All the GLFW functions work now, however I'm running into the same problem with the OpenGL functions. Isn't OpenGL already installed on Windows? Where are the libraries to link to?
[QUOTE=Killdozer;44181080]Oops, that was pretty stupid of me. All the GLFW functions work now, however I'm running into the same problem with the OpenGL functions. Isn't OpenGL already installed on Windows? Where are the libraries to link to?[/QUOTE] They should be, try updating your graphics drivers. Also make sure your linking to: [code] glu32, opengl32 //If your using Visual Studio GLU, GL //If your using mingw or codeblocks [/code]
How do you include a .dll in a c# project? The files are in my project folder and I can see then in the solution explorer but the using throws an error.
What is some good F# 3D visualization library? Like I want to do some magnetic flux simulation, electronics simulation, coil simulation and shit like that, just to learn physics (and F#) Actually it can be just .NET library :)
snip
[QUOTE=Richy19;44181219]They should be, try updating your graphics drivers. Also make sure your linking to: [code] glu32, opengl32 //If your using Visual Studio GLU, GL //If your using mingw or codeblocks [/code][/QUOTE] I'm using codeblocks, I found the GL and GLU header files and the glu32 library, but they did not help. I did not see any gl library other than glaux, but linking that one did not help either. I am seeing a lot of glu32.dll files in the windows installation though, is that what I want?
[QUOTE=Killdozer;44184030]I'm using codeblocks, I found the GL and GLU header files and the glu32 library, but they did not help. I did not see any gl library other than glaux, but linking that one did not help either. I am seeing a lot of glu32.dll files in the windows installation though, is that what I want?[/QUOTE] If your using codeblocks then it should be in your mingw installation directory, glu32 is the visual studio name you want libGLU and libGL
[QUOTE=Richy19;44184529]If your using codeblocks then it should be in your mingw installation directory, glu32 is the visual studio name you want libGLU and libGL[/QUOTE] I don't see those files. I'm in the right place, correct? [img_thumb]http://puu.sh/7pwpG.png[/img_thumb]
[QUOTE=Killdozer;44184717]I don't see those files. I'm in the right place, correct?[/QUOTE] Thats odd, maybe it is libglu32 and libopengl, I thought it was the same as linux
[QUOTE=Richy19;44184783]Thats odd, maybe it is libglu32 and libopengl, I thought it was the same as linux[/QUOTE] Ah, yes when I link libopengl it compiles. Do I also need to link glfw3.dll? The program complains that I don't have it but I do have it in [CODE]glfw-3.0.4.bin.WIN32\lib-mingw\glfw3.dll[/CODE] Something to do with putting that file into some folder in Windows?
[QUOTE=Killdozer;44184882]Ah, yes when I link libopengl it compiles. Do I also need to link glfw3.dll? The program complains that I don't have it but I do have it in [CODE]glfw-3.0.4.bin.WIN32\lib-mingw\glfw3.dll[/CODE] Something to do with putting that file into some folder in Windows?[/QUOTE] You will need to link to libglfw and have the dll along with the exe
[QUOTE=Richy19;44184942]You will need to link to libglfw and have the dll along with the exe[/QUOTE] Thank you for the help, linking that library and copy pasting the .dll into the same directory as my project worked. Do I always have to put the .dll in the same directory or is there a way to reference the .dll's location?
-snip-
[QUOTE=Killdozer;44186826]Thank you for the help, linking that library and copy pasting the .dll into the same directory as my project worked. Do I always have to put the .dll in the same directory or is there a way to reference the .dll's location?[/QUOTE] The dll needs to be with the exe or in your path, you should be able to set codeblocks to copy the dll into the build folder automatically tho
Is someone of you using python for windows? In ipython for unix there is the handy whateverfunction? thingie. By adding the ? you can basically see the man of that function. Is there an equivalent for this in the windows python shell?
[QUOTE=Richy19;44188957]The dll needs to be with the exe or in your path, you should be able to set codeblocks to copy the dll into the build folder automatically tho[/QUOTE] Alright, thanks for helping me sort this out.
[QUOTE=JakeAM;44182557]How do you include a .dll in a c# project? The files are in my project folder and I can see then in the solution explorer but the using throws an error.[/QUOTE] Add it as reference, not as source file. I think you can set it to copy to the output directory if necessary, if not you can add it as file and select the "Copy" build action.
Hey quick question. I'm doing a module on computer graphics. We have to use OpenGL and C for the assignments and I'm wondering what way I should do them? Should I get an IDE or do them in a basic editor like notepad++? I was wondering if I could get some help setting up the compilers and all that because I'm entirely new to graphics programming, and only dabbled in C before. Right now I have codeblocks installed but I don't know if I should stick with it.
[QUOTE=Over-Run;44192258]Hey quick question. I'm doing a module on computer graphics. We have to use OpenGL and C for the assignments and I'm wondering what way I should do them? Should I get an IDE or do them in a basic editor like notepad++? I was wondering if I could get some help setting up the compilers and all that because I'm entirely new to graphics programming, and only dabbled in C before. Right now I have codeblocks installed but I don't know if I should stick with it.[/QUOTE] I just got help from here setting up OpenGL with CodeBlocks. What I had to do was download [URL="http://www.glfw.org/download.html"]GLFW[/URL] and link some libraries, header files etc. Make sure to download the correct version (if your codeblocks is in Program Files (x86), get the 32-bit version). These are the libraries I had to link: [img_thumb]http://puu.sh/7qz2k.png[/img_thumb] And I had to add some directories for codeblocks to search for headers in: [img_thumb]http://puu.sh/7qznP.png[/img_thumb] So far this has succeeded in compiling and executing the [URL="http://www.glfw.org/docs/latest/quick.html"]example code[/URL] provided.
trying to get into Java and feel I'm making some progress, but this really has me clueless. [code] public class ResultsLoop { public static void main(String[] args) { double balance = 5000; double rate = 1.02; int years = 0; while (balance <= 100000); { balance *= rate; ++years; } System.out.println("pls gib output"); } } [/code] the loop keeps running, why isn't it ending? [editline]10th March 2014[/editline] not sure what I did to fix it, but it's working again now. removed the ; from while, all I can think of
[QUOTE=PredGD;44195344]trying to get into Java and feel I'm making some progress, but this really has me clueless. [code] public class ResultsLoop { public static void main(String[] args) { double balance = 5000; double rate = 1.02; int years = 0; while (balance <= 100000); { balance *= rate; ++years; } System.out.println("pls gib output"); } } [/code] the loop keeps running, why isn't it ending? [editline]10th March 2014[/editline] not sure what I did to fix it, but it's working again now. removed the ; from while, all I can think of[/QUOTE] You don't put semicolons after while statements.
[QUOTE=Killdozer;44194264]I just got help from here setting up OpenGL with CodeBlocks. [/QUOTE] I couldn't get it working. My codeblocks folder didn't have those subdirectories or anything ugh this is pissing me off its such a pain to get working
[QUOTE=Over-Run;44195759]I couldn't get it working. My codeblocks folder didn't have those subdirectories or anything ugh this is pissing me off its such a pain to get working[/QUOTE] Oh you probably installed codeblocks without MinGW. If you go [URL="http://www.codeblocks.org/downloads/26"]here[/URL] and download the version called codeblocks-13.12mingw-setup.exe or possibly codeblocks-13.12mingw-setup-TDM-GCC-481.exe, then you should have the subdirectories.
Thanks man that was probably it! I'll try it out in the morning
[QUOTE=Over-Run;44192258]Hey quick question. I'm doing a module on computer graphics. We have to use OpenGL and C for the assignments and I'm wondering what way I should do them? Should I get an IDE or do them in a basic editor like notepad++? I was wondering if I could get some help setting up the compilers and all that because I'm entirely new to graphics programming, and only dabbled in C before. Right now I have codeblocks installed but I don't know if I should stick with it.[/QUOTE] You might want to check out [URL="http://glew.sourceforge.net/"]GLEW[/URL] as well, assuming they don't mind you use a library like this, it is very useful.
Is there a faster way to add strings to a List<String> other than typing myList.Add("String"); 1 million times? I'm thinking something like myList.Add("String","String","String"); ... except that it only takes 1 argument ofcourse. This is C#.
[QUOTE=war_man333;44204307]Is there a faster way to add strings to a List<String> other than typing myList.Add("String"); 1 million times? I'm thinking something like myList.Add("String","String","String"); ... except that it only takes 1 argument ofcourse. This is C#.[/QUOTE] [url]http://www.dotnetperls.com/initialize-list[/url]
[QUOTE=war_man333;44204307]Is there a faster way to add strings to a List<String> other than typing myList.Add("String"); 1 million times? I'm thinking something like myList.Add("String","String","String"); ... except that it only takes 1 argument ofcourse. This is C#.[/QUOTE] You can pass an array of whatever object in the list to the [URL="http://msdn.microsoft.com/en-us/library/z883w3dc(v=vs.110).aspx"]AddRange[/URL] method, like so: [code] List<string> list = new List<string>(); list.AddRange(new string[]{"Item one", "Item two", "Item three"}); [/code]
[QUOTE=war_man333;44204307]Is there a faster way to add strings to a List<String> other than typing myList.Add("String"); 1 million times? I'm thinking something like myList.Add("String","String","String"); ... except that it only takes 1 argument ofcourse. This is C#.[/QUOTE] You can also make an extension to any object like this [code] public static void DoStuff(this List<string> Ls, params string[] Strings) { foreach (var Str in Strings) { Ls.Add(Str); } } [/code]
Sorry, you need to Log In to post a reply to this thread.