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
C

Chintan

@Chintan
About
Posts
58
Topics
27
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to assign directory rights programmatically?
    C Chintan

    Hi, I have developed an installer application in Visual C++ 6.0. It runs in admin login. While it creates program folder, I want to assign specific rights. The rights I want to assign are as under. Everybody should be allowed for Modify + Read & Execute + List folder content + Read + Write. On advance security tab, "Apply to" field for Everybody should be set to "This folder, subfolders and files". In addition "Apply these permissions to objects and/or containers within this container only" tick box shoud be checked. Right now, the code I have used for this is, -------------------------------------------------------------- SECURITY_ATTRIBUTES sa; SECURITY_DESCRIPTOR sd; InitializeSecurityDescriptor(&sd,SECURITY_DESCRIPTOR_REVISION); SetSecurityDescriptorDacl(&sd,TRUE,NULL,FALSE); SetSecurityDescriptorGroup(&sd,NULL, FALSE ); SetSecurityDescriptorSacl(&sd, FALSE, NULL, FALSE ); sa.nLength = sizeof(SECURITY_ATTRIBUTES); sa.lpSecurityDescriptor = &sd; sa.bInheritHandle = TRUE; CreateDirectory( m_strDestinationDir, &sa ); -------------------------------------------------------------- This gives full control to Everybody but does not have setting on Advance tab as I mentioned above. Due to that files created by one user in this folder becomes unaccessible for another user. I will be very much thankful if someone can help me out to resolve this problem. Thanks & Regards, Chintan.

    C.R.Naik

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

  • Upload a file to webserver
    C Chintan

    Thanks Mr. Praksh But still I am confused for one concept. Does "Put Script" always there with web server or should have to create in order to upload the file ? C.R.Naik

    C / C++ / MFC help

  • Upload a file to webserver
    C Chintan

    Friends, I want to upload a file to webserver using HTTP only. I have even searched a lot for such type of component also. Can you please help me to accomplish this task. Even if you know the request formate send by browser to webserver for uploading a file then also it will very helpful for me. Thanks a lot. C.R.Naik

    C / C++ / MFC help

  • Application that runs as Service
    C Chintan

    Hi Friends, How to make application that runs as NT\2000 Service? Is some extra coding needed for that ? Thanxs a lot. C.R.Naik

    C / C++ / MFC tutorial question

  • .pdf to .txt conversion
    C Chintan

    Hello Guys, Can anybody of you can give me some ideas or links or code about how to convert .pdf file into .txt file. Lot of readymade applications are available on net. I don't interested in all those but I want to make my own application for conversation. Thanking You C.R.Naik

    C / C++ / MFC tutorial

  • Generate Ctrl-Alt-Del programmatically
    C Chintan

    Hello guys, I want to generate Ctrl-Alt-Del key sequence programmatically. I have searched a lot on net but don't get any solution. I have tried to fill keyboard buffer with 'keybd_event()' function. But it is also not working. It seems that it fills application's key buffer. Anyway......can anybody help me to solve this problem ? Thanking You, C.R.Naik

    C / C++ / MFC help question

  • Memory problem with WorkerThread
    C Chintan

    1. I have used "return 0;" statement to return from thread's controlling function and hence to terminate thread. 2. How can you make sure that the process deallocates memory correctly ? Thanking You C.R.Naik

    C / C++ / MFC visual-studio debugging performance help

  • Memory problem with WorkerThread
    C Chintan

    Hello guys, I am frequently using one WorkerThread in my application. It is starting using AfxBeginThread() function. When I run application from within IDE, debug window is also not showing any memory leake. But when I run this application in Windows NT, its task manager shows memory usage going on increasing by time in chunk of 4 KB. Can anybody show me the way to control this memory wastage. Thanking You, C.R.Naik

    C / C++ / MFC visual-studio debugging performance help

  • Amazing !!!!!!
    C Chintan

    Look at following C statements: const char ch = 'c'; char* pc = (char*)&ch; *pc = 'd'; printf("%c[%u]\n%c[%u]",ch,&ch,*pc,pc); Output of this code is as follows: c[6684148] d[6684148] What I want to know is if both addresses are same then how the value can be different? Thanking You... C.R.Naik

    C / C++ / MFC question

  • Save desktop's image
    C Chintan

    Thanks for you support..... This is not a perfect solution for me because I want to save image as bitmap file and particularly for 256 colour image. Currently I can do it but some colour loss is there. Thanks again C.R.Naik

    C / C++ / MFC

  • Save desktop's image
    C Chintan

    Hi.......I want to save desktop's image in 256 colour settings programatically. Actually I have done it but some colour loss is there. So please let me know some idea or some piece of code through which I can save image as it actual looks like. Thanks a lot. C.R.Naik

    C / C++ / MFC

  • Modem AT commands
    C Chintan

    Modem works in two modes. One is command mode and another one is Online(data) mode. While modem is in command mode it replies apropriatly to your commands. While it is in online mode whatever you are sending to it through port, it will forward it to remote modem. So to transmit byte to remote system you have to bring modem in Online mode first. Chintan C.R.Naik

    C / C++ / MFC tutorial question

  • Modem AT commands
    C Chintan

    One easy way to sent commands to modem: Open a port using CreateFile() api. Then you will able to read or write on that handle using ReadFile() & WriteFile() apis just like as you read and write from file. Thats all !!!!!!!!!!!! C.R.Naik

    C / C++ / MFC tutorial question

  • Get child window's handles(HWND)
    C Chintan

    hello.......how to get Child frame's handles from Main frame in MDI application? Thanxs..... C.R.Naik

    C / C++ / MFC tutorial question

  • realted to new operator.
    C Chintan

    Both are unable to solve the problem. C.R.Naik

    C / C++ / MFC question

  • CString and WriteFile
    C Chintan

    Conversion from CString to char* is simple. For example, CString str = "test string; then you should write WriteFile(m_ComPortHndl,(char*)(LPCTSTR) str, str.GetLength(), &dwBytesWritten,NULL) C.R.Naik

    C / C++ / MFC c++ json help question

  • realted to new operator.
    C Chintan

    previous time I have tried : typedef auto_ptr < CString > str; and again I have tried the following one : typedef std::auto_ptr < CString > str; but both are not working and giving error Chintan C.R.Naik

    C / C++ / MFC question

  • realted to new operator.
    C Chintan

    I have tried the follwing : typedef auto_ptr str; but is not working. Gives error "syntax error : missing ';' before '<'". Is any header file needed? Chintan C.R.Naik

    C / C++ / MFC question

  • Changing font type in a View
    C Chintan

    Use SelectObject() API function giving second parameter as HFONT C.R.Naik

    C / C++ / MFC question

  • How to load a .jpg picture?
    C Chintan

    You can do it by using CCtrlList class's SetBkImage() function. Chintan C.R.Naik

    C / C++ / MFC question json help tutorial learning
  • Login

  • Don't have an account? Register

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