Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Merlin Tintin

@Merlin Tintin
About
Posts
12
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Validation (XHTML 1.0 Transitional): Attribute 'border' is considered outdated.....
    M Merlin Tintin

    To apply no border on all image use this stylesheet: img { border:0px; } (tested on FF and IE)

    La Richesse & la Gloire ne griseront jamais que les temples

    Web Development tutorial question

  • Use NGEN with WebDeployment
    M Merlin Tintin

    I agree with you for optimization - but optimization is not my main goal. My main goal is to protect the embeded code of my page and the framework that I put on the client server. My application is installed on all over the world on server that are the property of clients. So, I would like to use NGEN to put my code less (easier) readable. Fo that I have a plan. Each point is pretty simple to complete but the whole thing is more difficult because each feature is not predict to use other. Here is my steps to protect the .NET code (as strong as possible) - sign the assembly - All code of pages are in not single class but in a global DLL. This is realize with WebDeploymentProject - Compile in native code (NGEN). Put the code less readeable for decompilation. - Obfusacte the code with Dotfuscator Community 3.0 I realize each step without any problem but I cannot figure out how to implement everything together. ps: I have a click one install to install the web application. I hope this is more clear for you and I'm open to any other suggestion to protect the code efficiently.

    La Richesse & la Gloire ne griseront jamais que les temples

    C# c++ xml tutorial question

  • Use NGEN with WebDeployment
    M Merlin Tintin

    Hello, I'm using WebDeployment to deploy (to install) an intranet web application. I compile all aspx.cs class to one DLL. I have 2 more DLL that are personal libray and that are used by my application. So, I have actually 3 DLL. I would like to use NGEN to create DLL in native code during project installation. NGEN INSTALL MYDLL1.DLL NGEN INSTALL MYDLL2.DLL NGEN INSTALL MYDLL3.DLL Could you tell me how to use NGEN with WebDeployment Project to register my three DLL ? Have I to add command line in project file (XML) - witch section ? Second point: I would like also to use Dotfuscator community 3.0 with WebDeployment - if you have an article on the subject it would be great ! I have tried by when method are renamed to aa, bb, cc. the application don't found anymore the methods of my project... :( Regards,

    La Richesse & la Gloire ne griseront jamais que les temples

    C# c++ xml tutorial question

  • DLL found with VS2003 but not VS2005
    M Merlin Tintin

    hello everybody ! >> just a guess, have you installed the VC Redistribute [^] I have installed the VC Redistribute yes... But I found the problem. You remember DLL (b) ? That was the DLL used by my DLL (a). The guy who has compiled the DLL (b) has VS2005 SP1 ! SP1 is important because it requires some other DLL to work! So, we had to check with Dependency Walker to get the dependant DLL and the manifest to get the DLL version. With a lot of research we have finally found all DLL. That's all ! :cool: I have a last problem. I still cannot compile the VS2005 project (which is a project migrated from VS2003 by my boss). I get the following error: Error 2 fatal error C1902: Program database manager mismatch; please check your installation c:\MyProject\stdafx.cpp 1 This project compile correctly of my PC's boss. What do you think ? Thanks for you help, Regards,

    La Richesse & la Gloire ne griseront jamais que les temples

    C / C++ / MFC help c++ visual-studio sysadmin windows-admin

  • DLL found with VS2003 but not VS2005
    M Merlin Tintin

    re - thank you for your interest. My team continues to search but without success for now... 1. I have a problem to load library - not (yet) to import functions but thanks for typing Iain :) 2. Merlin Tintin wrote: so I have migrate my DLL (a) with VS2005. Merlin Tintin wrote: One more thing, I cannot compile the new solution VS2005 of the DLL (a). -> My boss has migrated the DLL on his computer and compile it. When I tried to compile his solution with VS2005, it doesn't compile. 3. Merlin Tintin wrote: hDLL = LoadLibrary("ReplayBox.dll"); when failed, what the GetLastError() returned. -> error code 14001 - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. -> not very usefull.. Regards,

    La Richesse & la Gloire ne griseront jamais que les temples

    C / C++ / MFC help c++ visual-studio sysadmin windows-admin

  • DLL found with VS2003 but not VS2005
    M Merlin Tintin

    Hello, I have a great problem that move the brain of all my team. We have developped a DLL with VS2003 in C++ and a test program to test this DLL (a) - Win32 Console application. The DLL (a) uses other DLL (b). It is working fine (on XP, and Windows Server 2003) Now I have a new version of DLL (b), so I have migrate my DLL (a) with VS2005. I've tested it and it's working fine on some PC but not on some ohter. Work on some XP machine, but never Windows Server 2003. PC where it is working fine have VS2003, VS2005 but my PC have both VS and it does not work. One more thing, I cannot compile the new solution VS2005 of the DLL (a). Here is some code of my test program: typedef LPCSTR DLLDIR (__stdcall *DllPlay) (LPCSTR name, LPCSTR file, ...); int _tmain(int argc, _TCHAR* argv[]) { DllPlay playDll; HINSTANCE hDLL; hDLL = LoadLibrary("ReplayBox.dll"); if (hDLL!=NULL) { playDll = (DllPlay) GetProcAddress(hstreamDLL, "?Play@@YGPB0K0H_NHH@Z"); if (playDll!=NULL) { printf("Play found\n"); result = (playDll)("myLogin","machin.wav", ...); printf("result : %s",result); } else { printf("Play not found\n"); } } else { printf("DLL not found !!!\n"); <- ERROR : GO HERE WITH VS2005 DLL !! } } When it's failed, it is due to the fact that my DLL (a) is not found. It could come also from one of the depenedency of DLL (a) with DLL (b). All DLL and test application are in the same directory. I do not undestand why it's not working on some machine. Help ? Advice ?

    La Richesse & la Gloire ne griseront jamais que les temples

    C / C++ / MFC help c++ visual-studio sysadmin windows-admin

  • Create a text file and download it ! [modified]
    M Merlin Tintin

    No i didn't found it ! Thanks a lot !!!

    La Richesse & la Gloire ne griseront jamais que les temples

    ASP.NET csharp tutorial question

  • Create a text file and download it ! [modified]
    M Merlin Tintin

    Thank you Sandeep for your answer. 1. unfotunately your code does not work... this condition is never true: if (file.Exists) => i modify your code and it's working... if (filename != "") { string path = Server.MapPath ( filename ); System.IO.FileInfo file = new System.IO.FileInfo ( path ); StreamWriter fp = File.CreateText ( path ); fp.WriteLine(text); fp.Close (); if ( file.Exists ) { Response.Clear (); Response.AddHeader ( "Content-Disposition", "attachment; filename=" + file.Name ); Response.AddHeader ( "Content-Length", file.Length.ToString () ); Response.ContentType = "application/octet-stream"; Response.WriteFile ( file.FullName ); Response.End (); } else { Response.Write("This file does not exist."); } } 2. I'm certain there is a way to show the download box without writing the file on the server. Thanks !

    La Richesse & la Gloire ne griseront jamais que les temples

    ASP.NET csharp tutorial question

  • #region coding
    M Merlin Tintin

    Region do not influence the code or execution of the program. It is just a facility to give the code more readable. It is just more easy to read if you have a class with 2000 lines.

    La Richesse & la Gloire ne griseront jamais que les temples

    ASP.NET question

  • Create a text file and download it ! [modified]
    M Merlin Tintin

    Hi ! Here is what I would like to do.. User clicks on a button. I want to create a report in text mode (generated by my ASP .NET application - C#) and then show a download box on the browser of the user to allow him to download this report. The filename of the report will be defined previously. I have delete all header from my aspx page to just leave this <%@ Page Language="C#" AutoEventWireup="true" CodeFile="PageName.aspx.cs" Inherits="PageName" %> and in my code behind i do: Response.Write ("xxx"); How to show the download box on the screen ? Thanks ! -- modified at 3:09 Friday 21st September, 2007 -- modified at 4:15 Friday 21st September, 2007

    La Richesse & la Gloire ne griseront jamais que les temples

    ASP.NET csharp tutorial question

  • width of a text (font specific)
    M Merlin Tintin

    You have to use a great function provided by the Graphic class named: MeasureString. I use that to write text in my chart webcomponent... check this article: http://www.codeproject.com/cs/media/measurestring.asp La Richesse & la Gloire ne griseront jamais que les temples

    C# question

  • How to play a sound from my program.
    M Merlin Tintin

    using System.Runtime.InteropServices; [System.Runtime.InteropServices.DllImport("kernel32")] private static extern int Beep(int dqFreq, int dqDuration); Beep (3000,25); => It will play a nice beep like in '80 years ;P If you are not happy with that you can also use the MCI functionalities provoded by the API (need import also) or ... simply play wave with: [System.Runtime.InteropServices.DllImport("Winmm.dll")] private static extern bool PlaySound(byte[] data, IntPtr hMod, UInt32 dwFlags);

    La Richesse & la Gloire ne griseront jamais que les temples

    C# csharp visual-studio help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups