473,386 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Can C language be used on windows files??

blackgoat
Its a really wierd question I guess.. but what I want to know is that can C language .. or any other language for that matter, be used to access, open and execute a file in a windows OS?? eg a power point slide show??

thanks

BG
Jul 21 '10 #1
9 1726
Banfa
9,065 Expert Mod 8TB
Well basically yes but there is a whole can or worms to sort out once the basic question is out of the way.

What were you trying to do?
Jul 21 '10 #2
@Banfa
Thanks for replying.

Well I have to execute a slide show basically.. but I want the file to open only if the system date satisfies the basic requirement like if date<01/01/2011 etc.

How can I achieve this?

Thanks again

BG
Jul 22 '10 #3
Jyoti Ballabh
115 100+
yea, it's possible but you will need to deal with a plenty of troubleshooting. If you need the file to be date responsive, you could set a numeric counter to begin with followed by conversion to string mode and then comparing it.
Jul 22 '10 #4
@Jyoti Ballabh
okay but I'am not really sure how to go about this.. could you pls help by explaining a bit elaborately.

thanks
Jul 22 '10 #5
Banfa
9,065 Expert Mod 8TB
I don't think you need to use C to do this. Have you looked at the Task Scheduler in the Control Panel?
Jul 22 '10 #6
weaknessforcats
9,208 Expert Mod 8TB
You will need to use an SDK from Microsoft for this. That is, your slide show example requires a startup iof a PowerPoint process. There is an Office SDK for this.

Be prepared to address a whole host of issues (not the least of which is learning Windows programming) if you try this.
Jul 22 '10 #7
Oralloy
988 Expert 512MB
Let me understand this - you want to build a wrapper for your power-point presentation, which prevents showing the presentation after a given cut-off date.

I assume that you would also like to prevent the user from accessing the raw file from power-point, and looking at it after the cut-off date.

Or have I misunderstood your goals?
Jul 23 '10 #8
@Oralloy
Yes, that is exactly what I need to do.. using C language or any other programming language was just a wild guess. Please also let me know if there is any other way of going about it.

Thanks
Jul 24 '10 #9
Oralloy
988 Expert 512MB
This is getting beyond my ability to code in Windows without research, but ....

Create a little program to run and check the date
if the date is bad, issue a message and exit.
otherwise
create a DDE or COM connection to PowerPoint.
shove the file across the link.

I'm not sure if your code will have to manage the window or not. As I said, this is a bit more complex than I've done before.
Jul 26 '10 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: rbt | last post by:
How do I enable the hidden attribute when creating files on Windows computers? I'd *really* prefer to do from the standard Python installer (no win32 extensions). Any tips? Thanks
3
by: muchan | last post by:
A simple question. (Sorry, if it's already in FAQ) What is the syntax definition language used in the XML 1.0 page of the W3C <http://www.w3.org/TR/REC-xml/>? I searched some syntax definition...
2
by: eikel | last post by:
Hi I am a newbie c# programmer, I would like to know how to make a function that switches between languages in windows XP/2000. The languages can be set manually in the language bar. Thanks for...
1
by: eikel | last post by:
Hi I am trying to display and set the language in XP, therefore I wrote the following program: using System; using System.Globalization; using System.Security.Permissions; using...
3
by: Scott | last post by:
I've googled this a bit and suppose I know the answer, but I'd appreciate any input: I'd like to write windows forms apps in C++, but it seems almost as if that is discouraged. As an example,...
4
by: Mimi31 | last post by:
In a previous post Lille asked for help in changing the Microsoft Windows XP Home edition from German to english. She was given the site as the above title. This is exactly my problem as well and...
1
by: Catbuga | last post by:
I would like to know how to change Windows Vista in Spanish into English, cansomeone please tell me how or what to I have to do? Is there any way to do this with out having to re-install Windows...
32
by: jhc0033 | last post by:
Interesting article I came across on Slashdot: http://developers.slashdot.org/developers/08/07/10/213211.shtml They are using C at JPL to program Mars Lander and just about everything now! Not...
1
by: dhroller | last post by:
Changing the DB2 interface language requires to change the regional settings of Windows. Is there another way?
3
by: muddasirmunir | last post by:
i want to install urdu language in windows xp , in control panel if i click regional and language setting , i found many other languages but urdu is not mention, i know it can be install but how? ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.