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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

SPGV

@SPGV
About
Posts
16
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How can I compute the number of weeks in a year
    S SPGV

    I think, some years have 52 weeks while some have 53. Is there a way of using CTime/SPan classes to compute this

    C / C++ / MFC question

  • Create a WinZip file and is there a way to prevent winzip from reading it
    S SPGV

    I create a zip file and do not want winzip to open it. that is say I have a.zip now I only want my app to be able to open this file and not winzip. Once my app takes control then winzip can be used internally to extract the file contents. Any idea?

    C / C++ / MFC question

  • Associate a icon with a file type
    S SPGV

    I have a sample that creates a file with a different extension (say.xyz)Now I need to associate an icon with this file that was created, Any idea on how to do this

    C / C++ / MFC tutorial

  • How to set Excel App Invisible
    S SPGV

    While automating excel in VC++, we get the excel app via an ole dispatch driver, now we open some ExcelWorkbooks using the Open Method of WorkBooks, How Can I make sure that the excel wookbook is invisible. using the SetVisible property of excel was of no help

    C / C++ / MFC c++ com help tutorial question

  • while creating a zip file using any utility like dynazip
    S SPGV

    How can I add Header information. Like Version info and other important information? Thanks SPGV

    C / C++ / MFC question tools announcement

  • access class members from a non class global static function
    S SPGV

    well I guess Get/Set are member func if not I wonder how Get will return mstr??. If they are member funcs then back to square one!!! I did not know that I could access member funcs in global static function(CompareModes) then I would not have faced any problem :-(

    C / C++ / MFC question

  • access class members from a non class global static function
    S SPGV

    I guess more info had to be given, A is a dlg class and I have a combo in it and onSelandOK I fill the mStr member. The on clicking another button I do some sorting and there in I need the mstr. So there is no point in creating a new obj in comparemodes. I need to access the member's value of the same obj that's calling func()

    C / C++ / MFC question

  • access class members from a non class global static function
    S SPGV

    The case is as below class A {public cstring mstr; func();} static int CompareModes(const void *arg1, const void *arg2 ); A::func() { .... qsort ((void *)lpModes, (size_t)cModes, sizeof(LPDDModeInfo), CompareModes); } int CompareModes(const void *arg1, const void *arg2) { CB *p1, *p2; p1 = *(CB**)arg1; p2 = *(CB**)arg2; CString str1, str2; str1 = p1->GetValue(mstr); str2 = p2->GetValue(mstr); return str1.CompareNoCase(str2); } here I need to access mstr in the static func CompareModes

    C / C++ / MFC question

  • access class members from a non class global static function
    S SPGV

    I have a class A{ public :CString m_str;} static int func()not in the class. How can I acess m_str in this function func()

    C / C++ / MFC question

  • Can I write the an ODL script that can be compiled with MIDL
    S SPGV

    Is ODL an alternative to IDL to provide interfce definitions Also can I compile it with MIDL and get the necessary header for the interfave

    COM tools

  • In Vbscript using Ole Automation how to I open a PPT presentation with the main PPT App window in a minimised mode
    S SPGV

    In Vbscript using Ole Automation how to I open a PPT presentation with the main PPT App window in a minimised mode

    Visual Basic com testing tools tutorial

  • IN VBS how do I check if some software is installed using registry
    S SPGV

    I need to get a path of an app's exe using registry,in VBS

    Visual Basic windows-admin question

  • In VB (automation) I want to make Powerpoint run in the invisible mode
    S SPGV

    Dim powerpoint_4 Set powerpoint_4 = CreateObject("PowerPoint.Application") powerpoint_4.Activate Dim presentation_4_1 Set presentation_4_1 = powerpoint_4.Presentations.Open("C:\temp\sample.ppt ") With this the PPT comes up, I do not wish PPT to come up and make some changes to sample.ppt

    Visual Basic testing tools

  • Set the time object (eg using COleDateTime) 5 minutes ahead of the currect time
    S SPGV

    How do I set a COleDateTime Object which is set to the current time to 5 minutes ahead of the current time. Taking care of cases like 12th hour, 59 seconds. dates like 31st etc.

    C / C++ / MFC question

  • can we call dynamic_cast in OnInitDialog
    S SPGV

    can we call dynamic_cast in OnInitDialog

    C / C++ / MFC

  • help to Convert this VBA into a vbscript
    S SPGV

    VBA module Type PROCESS_INFORMATION hProcess As Long hThread As Long dwProcessId As Long dwThreadId As Long End Type Type STARTUPINFO cb As Long lpReserved As String lpDesktop As String lpTitle As String dwX As Long dwY As Long dwXsize As Long dwYsize As Long dwXCountChars As Long dwYCountChars As Long dwFillAttribute As Long dwFlags As Long wShowWindow As Integer cbReserved2 As Integer lpReserved2 As Long hStdInput As Long hStdOutput As Long hStdError As Long End Type Declare Function CloseHandle Lib "kernel32" (hObject As Long) As Boolean Declare Function GetExitCodeProcess Lib "kernel32" (ByVal hObject As Long, ByRef dwExitCode As Long) As Boolean Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long Declare Function CreateProcessA Lib "kernel32" (ByVal lpApplicationName As Long, ByVal lpCommandLine As String, ByVal lpProcessAttributes As Long, ByVal lpThreadAttributes As Long, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, ByVal lpEnvironment As Long, ByVal lpCurrentDirectory As Long, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long 'Public Sub ShellAndWait(AppToRun)As Integer Function ShellAndWait(AppToRun) As Integer Dim NameOfProc As PROCESS_INFORMATION Dim NameStart As STARTUPINFO Dim rc As Long Dim dwExitCode As Long dwExitCode = -1 ShellAndWait = dwExitCode NameStart.cb = Len(NameStart) rc = CreateProcessA(0&, AppToRun, 0&, 0&, 1&, NORMAL_PRIORITY_CLASS, 0&, 0&, NameStart, NameOfProc) rc = WaitForSingleObject(NameOfProc.hProcess, INFINITE) rc = GetExitCodeProcess(NameOfProc.hProcess, dwExitCode) MsgBox "ExitCode for the process is, dwExitCode = " & dwExitCode ShellAndWait = dwExitCode rc = CloseHandle(NameOfProc.hProcess) End Function

    Visual Basic help
  • Login

  • Don't have an account? Register

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