visual-studio-2008

C++: How to encrypt strings at compile time?

£可爱£侵袭症+ 提交于 2019-12-30 08:08:12
问题 I want to hide some strings in my .exe so people can't simply just open the .exe and look at all the strings there. I don't care about the strength of the encrypting method, so I will probably use XOR etc. How can I do this at compile time? That way my strings won't be stored in the .exe but the encrypted versions would. Then, I would just use my decrypting function every time to display those strings on screen. 回答1: you can encrypt it using macros or write your own preprocessor #define

What makes an app console or Windows Form application?

六月ゝ 毕业季﹏ 提交于 2019-12-30 07:59:35
问题 [Visual Studio 2008] I created a new project for console application and modified it to look like this: class Program { static void Main (string[] args) { Thread.Sleep (2000); } } Then I created another project for Windows Form application and modified it: static class Program { //[STAThread] commented this line static void Main (string[] args) { //Added args //Commented following lines //Application.EnableVisualStyles (); //Application.SetCompatibleTextRenderingDefault (false); //Application

Convert C# (with typed events) to VB.NET

余生颓废 提交于 2019-12-30 07:41:34
问题 I have an ASPX page (with VB Codebehind). I would like to extend the GridView class to show the header / footer when no rows are returned. I found a C# example online (link) (source). However, I cannot convert it to VB because it uses typed events (which are not legal in VB). I have tried several free C# to VB.NET converters online, but none have worked. Please convert the example to VB.NET or provide an alternate method of extending the GridView class. Notes / Difficulties: If you get an

Convert C# (with typed events) to VB.NET

南笙酒味 提交于 2019-12-30 07:41:20
问题 I have an ASPX page (with VB Codebehind). I would like to extend the GridView class to show the header / footer when no rows are returned. I found a C# example online (link) (source). However, I cannot convert it to VB because it uses typed events (which are not legal in VB). I have tried several free C# to VB.NET converters online, but none have worked. Please convert the example to VB.NET or provide an alternate method of extending the GridView class. Notes / Difficulties: If you get an

How to separate the kernel file CUDA with the main .cpp file

China☆狼群 提交于 2019-12-30 07:03:16
问题 When I build the code with kernelAdd() function and main() function in the same file mainFunc.cu, it's ok. But when I separate the kernelAdd() function in the kernelAdd.cu file and the main file in main.cpp file, it's built with the 2 errors: "error C2065: 'add' : undeclared identifier" and "error C2059: syntax error : '<'" I built them in Visual Studio 2008 and Cuda v5.0. And how do I correct its errors? Thanks! kernelAdd.cu __global__ void add(int a, int b, int *c) { *c = a + b; } mainFunc

Unix Makefile in Windows Visual Studio 2008

孤者浪人 提交于 2019-12-30 06:55:07
问题 I've done a decent search, but can't seem to find a way to get Visual Studio 2008 to use a unix Makefile, or even to create some MSVC compatible equivalent from the Makefile. Does anyone have ideas or similar issues? Note: I already know the benefits/drawbacks of using Makefiles or not, and I don't want to hear your opinion. All I'm interested in right now is creating a Windows library from some originally unix code which only has a Makefile, and getting something functional out of it. TIA.

Unix Makefile in Windows Visual Studio 2008

ぐ巨炮叔叔 提交于 2019-12-30 06:55:04
问题 I've done a decent search, but can't seem to find a way to get Visual Studio 2008 to use a unix Makefile, or even to create some MSVC compatible equivalent from the Makefile. Does anyone have ideas or similar issues? Note: I already know the benefits/drawbacks of using Makefiles or not, and I don't want to hear your opinion. All I'm interested in right now is creating a Windows library from some originally unix code which only has a Makefile, and getting something functional out of it. TIA.

Windows CE 5.0 emulator needed

大兔子大兔子 提交于 2019-12-30 06:45:34
问题 I need an emulator for Windows CE 5.0 to test an embedded device (not PDA or smartphone) application that I am developing. This is what I have already tried: Visual Studio 2008 Pro includes an emulator. Unfortunately, it does not include a Windows CE image (only Windows Mobile and Smartphone). Yes, there is a difference, see the screenshots here. Windows CE includes a "start button", windows that can be minimized, moved around etc. There is a Windows CE Device Emulator available from

What type of project needs to be created for C++/CLI?

一曲冷凌霜 提交于 2019-12-30 06:42:06
问题 I am writing a wrapper for my native C++ methods in C++/CLI which will expose them to C#. Now I am using Visual Studio 2008. Can any one tell me what type of project I need to create so that my wrapper will be exposed to C#. I see in Visual Studio 2008 there are different types of projects under Visual C++--->CLR----> class library, CLR Empty Project, Windows form control library, CLR Console Application, Windows Forms Application, Windows Service Which one should I use? 回答1: You have to

PDF Previewing and viewing

我怕爱的太早我们不能终老 提交于 2019-12-30 06:41:05
问题 I'm creating a document viewing web application. You log in and it takes you to a screen where you have all your docs listed on the left. I want to make it so that when you roll over a document a preview of the document shows up on the right. From there you can click on it for a full view and printing capabilities. I'm not asking how to do all that but I'm wondering what the best way would be to go about rendering the preview of the document. The documents are all going to be pdfs and stored