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
V

Vikas K

@Vikas K
About
Posts
28
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Large file handling using MFC
    V Vikas K

    Thank you for your suggestions. Willwork on them and update :) .

    C / C++ / MFC c++ css algorithms json performance

  • add-in for outlook express
    V Vikas K

    I don't know about Outlook Express but for MS Outlook, you can do the operations that you have given using Microsoft VSTO. Please read more about it and see if it helps you.

    C / C++ / MFC com

  • Large file handling using MFC
    V Vikas K

    by the way, the application is written in MFC

    C / C++ / MFC c++ css algorithms json performance

  • Large file handling using MFC
    V Vikas K

    Hi, I'm working on an application where it loads a huge file (like 4-6GB) and parses the file, searching for regular expressions, converting from Hex to Human readable form, filters etc. Since the file is of very large size, I'm facing lot of performance issues where it takes hours to process and show the file information in a window. To overcome this, what I did is, break the entire file into logical segments of 1 MB each and process 3 segments at a time. When the user is scrolling, the next segments will be processed. With this, a certain amount of improvements were done. But it is limited to files which are less than 300MB or so. For files which are over GBs, it is just crawling and pathetic. Wondering if there is any better way to handle these large files in a better way so that the user need not wait for hours? Will a buffered read and caching the decoded information in a temporary files using a thread would help? How can we make sure that the GUI doesn't hang during these intensive parsing process? Really appreciate your suggestions. Thanks Vikas

    C / C++ / MFC c++ css algorithms json performance

  • runtime error 53 - "file not found"
    V Vikas K

    Actually, I had compiled the VC++ DLL in debug mode and it was the issue. The moment I had release mode DLL. it worked fine. Thanks Vikas

    Visual Basic csharp help question

  • runtime error 53 - "file not found"
    V Vikas K

    Hi, I'm using VC6.0 DLL with VB.NET. XYZClient.dll is in the same directory as the VB.NET exe is present. But, still I get this runtime error on some PCs.It works on couple of PC without any issues. I tried on Windows XP as well as 2K. Results are intermittent. Any idea? In VB, function is decalred as below: Declare Function XYZOpenConnection Lib "XYZClient.dll" (ByVal IPAddressOrMachineName As String, ByVal usernameOfXYZUserGroup As String, ByVal applicationData As Integer) As Short Thanks Vikas

    Visual Basic csharp help question

  • Typecasting string to char * in C#
    V Vikas K

    Actually from C# I'm calling an unmanaged MFC DLL. MFC DLL has an API for example: int fnSetMonitorNo(char* m_MonitorNo) int fnGetMonitorNo(char* m_MonitorNo) If I pass char* to the DLL, it will see the MonitorNo. I tried to do in C# as follows [DllImport("OfficeCTE.dll")] public static extern unsafe int fnSetMonitorNo([MarshalAs(UnmanagedType.LPStr)]string arg1); [DllImport("OfficeCTE.dll")] public static extern unsafe int fnGetMonitorNo([MarshalAs(UnmanagedType.LPStr)]string arg1); But it didn't work. How can this be done?

    C# csharp tutorial question

  • Typecasting string to char * in C#
    V Vikas K

    I mean to char*

    C# csharp tutorial question

  • Typecasting string to char * in C#
    V Vikas K

    Hi, Sorry if this is too basic, Can you please let me know how to typecast string to char* in C#? I need this as Im calling a managed DLL function. Thanks Vikas

    C# csharp tutorial question

  • MSN Messenger andC#
    V Vikas K

    Hi, I'm currently studying how C# can be used to control MSN messenger. I'm searching here in CodeProject and google. There are couple of examples and none of them work properly for me. I know, I may not be using them properly. They talk about MessengerAPI. I added reference Add reference -> COM -> Messenger APIs. But, I stillget error as The type or namespace name 'MessengerPriv' could not be found (are you missing a using directive or an assembly reference?) H:\New Folder\msn\msnsessionchange\MessengerUnlocker.cs. Please tell me what is the proper way to work on MSN messenger with C# and how to add the proper refrence to MessengerAPI. I also saw MSDN article on Messnger Lock and key API.. All said and done, it doesn't look straight forward to me. Any help would be appreciated Thanks Vikas

    C# help question csharp com algorithms

  • Plugins for MS Office, Internet explorer using C#
    V Vikas K

    I tried to install VSTO but I have C# 2005 express edition and doesnt support. Is there anyway I can try VSTO on Express edition? Thanks Vikas

    C# csharp question

  • Plugins for MS Office, Internet explorer using C#
    V Vikas K

    Hi, Please let me know if there are any good books to start with plugins for MS office, Outlook, IE etc using C#? I loking into few links on MSDN but wanted to see if anyone has some pointers on it? Appreciated Thanks Vikas

    C# csharp question

  • CIPAddressCtrl doesn't show Tooltips!
    V Vikas K

    How to fix it?

    C / C++ / MFC com help question

  • CIPAddressCtrl doesn't show Tooltips!
    V Vikas K

    Hi, I can display tooltips for controls like buttons, dialog etc..but not for CIPAddressCtrl variables! ref Article: http://support.microsoft.com/kb/q141758 Any help? Thanks Vikas

    C / C++ / MFC com help question

  • Adding an exe into resource in MFC
    V Vikas K

    Hi, Can you please let me know how to do the following? I have a console exe that does something. I call this exe from Dialog based MFC app. I want to add this console exe into MFC resource and then use it in the MFC app. Can this be done? My idea here is to have only one exe instead of two :~. Thanks in advance Vikas

    C / C++ / MFC c++ tutorial question learning

  • Running batch script in MFC
    V Vikas K

    Hi, I have a tricky issue here: A MFC dialog based App calls a Batch script. This batch script again calls a SSH tool to login to a remote PC. This is to enable FTP service on WinNT remote PC. This is done multiple times in my MFC app. SSH login take approximately 30 seconds and somehow I can not make the control waut there until the SSL login goes thru. I have used the following code to run the Sample BAT file: -TestFTP.bat- ssh.exe -pw @ net start ftp exit In MFC I use WaitForSingleObject to wait for completion of TestFTP.bat: SHELLEXECUTEINFO ShExecInfo = {0}; ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO); ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS; ShExecInfo.hwnd = NULL; ShExecInfo.lpVerb = NULL; ShExecInfo.lpFile = "TestFTP.bat"; ShExecInfo.lpParameters = ""; ShExecInfo.lpDirectory = NULL; ShExecInfo.nShow = SW_HIDE; ShExecInfo.hInstApp = NULL; ShellExecuteEx(&ShExecInfo); WaitForSingleObject(ShExecInfo.hProcess,INFINITE); However, WaitForSingleObject returns immediately and Not sure whats wrong here. How to wait till the batch completes? Any help would be great! Thanks Vikas

    C / C++ / MFC help c++ security tools tutorial

  • Eventhandler in C# - How to send parameter
    V Vikas K

    Yes, This solution works properly! :) though a bit advanced for me! thanks

    C# question tutorial csharp database data-structures

  • C# Project corrupted?
    V Vikas K

    Thank you Martin and others who gave quick answers! I created another file and things are pretty nice now! Help is really appreciated :)

    C# question csharp database visual-studio design

  • C# Project corrupted?
    V Vikas K

    Hi, Ok I know why this is happening but pls tell me whats wrong in doing this? 1. My form is like this: Everything is proper and I can view the designer //file Form1.cs public partial class Form1 : Form { // many functions/events related to UI controls are here } 2. I need to have a special control class say MyPictureBox derived from PictureBox so added the code as follows in file Form1.cs: //file Form1.cs public class MyPictureBox : System.Windows.Forms.PictureBox { // some special code will be put here } public partial class Form1 : Form { // many functions/events related to UI controls are here } Thats it: Now If I try to open the designer I get the error: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. The service System.Windows.Forms.Design.ISelectionUIService already exists in the service container. Parameter name: serviceType Hide at System.ComponentModel.Design.ServiceContainer.AddService(Type serviceType, Object serviceInstance, Boolean promote) at System.ComponentModel.Design.ServiceContainer.AddService(Type serviceType, Object serviceInstance) at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IServiceContainer.AddService(Type serviceType, Object serviceInstance) at System.Windows.Forms.Design.ComponentDocumentDesigner.Initialize(IComponent component) at System.ComponentModel.Design.DesignerHost.AddToContainerPostProcess(IComponent component, String name, IContainer containerToAddTo) at System.ComponentModel.Design.DesignerHost.Add(IComponent component, String name) at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name) at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer) at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer) at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)

    C# question csharp database visual-studio design

  • C# Project corrupted?
    V Vikas K

    I tried but still I can't see the form design! I guess, I will have to port the entire code into a new project now :((

    C# question csharp database visual-studio design
  • Login

  • Don't have an account? Register

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